Function at 0x40deb0
Capabilities:
Encode data using base64
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559baa
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5aeb30]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5aeb30]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0xc8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xd8]
mov dword [esp + 0x44], esi
test eax, eax
je 0x40df10
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
push eax
push ecx
call fcn.00441434
lea edi, [esi + 0xd0]
mov ecx, edi
call fcn.004413fd
mov ebx, dword [0x5b6a8c]
call fcn.0044271b
mov dword [eax + 0xc], ebx
call fcn.0044271b
mov eax, dword [eax + 0xc]
push 0x424
push eax
call dword [sym.imp.user32.dll_LoadBitmapW]
push eax
mov ecx, edi
call fcn.004413a3
mov eax, dword [esi + 0xc8]
xor ebx, ebx
cmp edi, ebx
jne 0x40df61
xor edi, edi
jmp 0x40df64
mov edi, dword [edi + 4]
mov edx, dword [eax + 4]
push edi
push edx
call fcn.00441434
mov ecx, dword [esi + 0xc8]
push 1
call fcn.004406e9
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push ebx
call edx
mov eax, dword [esi + 0xc8]
cmp eax, ebx
jne 0x40df99
mov dword [esp + 0x28], ebx
jmp 0x40dfa0
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x4d4]
cmp dword [esi + ecx*4 + 0xc10], ebx
je 0x40e098
mov eax, dword [esi + 0x98]
lea edi, [esi + 0x94]
cmp eax, ebx
je 0x40dfe9
or ecx, 0xffffffff
push eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov word [edi + 0x1c], bx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov edx, dword [esi + 0x4d4]
mov eax, dword [esi + edx*4 + 0xc10]
cmp eax, 1
jne 0x40e038
mov eax, dword [0x5b6a8c]
push 0x588b50
push 0x497
push eax
mov ebx, eax
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x40e022
push edi
mov ecx, ebx
call fcn.00406940
add esp, 4
call fcn.004069d0
mov eax, dword [esi + 0x394]
mov esi, dword [esi + 0x390]
add esi, 0x64
jmp 0x40e07b
cmp eax, 0xffffffff
jne 0x40e098
mov eax, dword [0x5b6a8c]
push 0x588b50
push 0x499
push eax
mov ebx, eax
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x40e064
push edi
mov ecx, ebx
call fcn.00406940
add esp, 4
call fcn.004069d0
mov eax, dword [esi + 0x394]
mov esi, dword [esi + 0x398]
sub esi, 0xc8
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
push ecx
push ebx
push ecx
add eax, 0x14
push eax
mov eax, dword [esp + 0x38]
push esi
mov esi, edi
call fcn.004121e0
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 0x400]
mov edi, dword [sym.imp.cards32.dll_cdtDraw]
cdq
and edx, 3
add eax, edx
mov ebx, 1
sar eax, 2
cmp eax, ebx
jl 0x40e0f6
jmp 0x40e0c0
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x120]
mov edx, dword [esp + 0x28]
push 0
push 1
push 0x39
add eax, ebx
push eax
add ecx, ebx
push ecx
push edx
call edi
mov eax, dword [esi + 0x400]
cdq
and edx, 3
add eax, edx
inc ebx
sar eax, 2
add esp, 0x18
cmp ebx, eax
jle 0x40e0c0
mov dword [esp + 0x18], 0
lea ebx, [esi + 0x130]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0x34
push eax
push ecx
push edx
call edi
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax*4]
mov eax, dword [esi + edx*4 + 0x4dc]
add esp, 0x18
test eax, eax
js 0x40e149
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
push 0
push 0
push eax
mov eax, dword [ebx + 4]
push eax
push ecx
push edx
call edi
add esp, 0x18
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x10
mov dword [esp + 0x18], eax
cmp eax, 4
jl 0x40e104
mov dword [esp + 0x18], 0
lea ebx, [esi + 0x170]
jmp 0x40e170
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0x34
push eax
push ecx
push edx
call edi
add esp, 0x18
cmp dword [esp + 0x18], 0xb
jge 0x40e1c4
mov eax, dword [esi + 0x4d4]
add eax, 0x21
imul eax, eax, 0xb
add eax, dword [esp + 0x18]
mov eax, dword [esi + eax*4]
test eax, eax
js 0x40e1c4
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0
cmp eax, 0x35
jg 0x40e1b5
push 0
jmp 0x40e1b7
push 1
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call edi
add esp, 0x18
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x10
mov dword [esp + 0x18], eax
cmp eax, 0xb
jl 0x40e170
mov ecx, dword [esi + 0x224]
mov edx, dword [esi + 0x220]
mov ebx, dword [esp + 0x28]
push 0
push 1
push 0x3b
push ecx
push edx
push ebx
call edi
mov eax, dword [esi + 0x234]
mov ecx, dword [esi + 0x230]
push 0
push 1
push 0x3b
push eax
push ecx
push ebx
call edi
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
add esp, 0x30
lea eax, [esi + 0x104]
push eax
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
push 0xff
call eax
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e24a
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov eax, 0x588bac
shr eax, 0x10
mov dword [esp + 0xd0], 0
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x40e29c
mov ecx, 0x588bac
movzx eax, cx
push eax
mov dword [esp + 0x30], eax
call fcn.00437bb8
test eax, eax
je 0x40e2b0
mov edx, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00403eb0
jmp 0x40e2ac
push 1
push 0x588bac
lea ecx, [esp + 0x28]
call fcn.004042c0
mov ebx, dword [esp + 0x20]
push 0x25
mov dword [esp + 0xd4], 1
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
lea eax, [esi + 0x220]
push eax
mov eax, dword [ebx - 0xc]
push eax
mov eax, dword [edx + 0x68]
push ebx
call eax
add ebx, 0xfffffff0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2fd
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e317
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0xd0], 2
mov ecx, dword [esi + 0xc44]
push ecx
lea edx, [esp + 0x44]
push 0x5892b4
push edx
call fcn.00403cd0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0xc8]
mov ebx, dword [ecx]
add esp, 0xc
push 0x25
lea edx, [esi + 0x230]
push edx
mov edx, dword [eax - 0xc]
push edx
push eax
mov eax, dword [ebx + 0x68]
call eax
lea ecx, [esi + 0x7e8]
lea ebx, [esi + 0x240]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], 6
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0
push 1
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call edi
add dword [esp + 0x2c], 4
add esp, 0x18
add ebx, 0x10
dec dword [esp + 0x34]
jne 0x40e382
mov eax, dword [esi + 0x3e8]
xor ebx, ebx
cmp eax, ebx
jl 0x40e3e7
cmp eax, 4
jge 0x40e3ec
cmp dword [esi + 0x3e4], 0x35
jg 0x40e3e7
push ebx
mov ecx, eax
push 1
add ecx, ecx
mov edx, dword [esi + ecx*8 + 0x134]
mov ecx, dword [esp + 0x30]
add eax, 0x13
push 0x43
add eax, eax
mov eax, dword [esi + eax*8]
push edx
push eax
push ecx
jmp 0x40e410
cmp eax, 4
jl 0x40e415
cmp eax, 0xf
jge 0x40e415
push ebx
mov edx, eax
push 1
add edx, edx
mov ecx, dword [esi + edx*8 + 0x134]
add eax, 0x13
push 0x43
add eax, eax
mov edx, dword [esi + eax*8]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call edi
add esp, 0x18
mov ecx, dword [esi + 0xc8]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov edx, dword [ecx]
lea eax, [esi + 0x104]
push eax
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
push ebx
call eax
call fcn.00437cf1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e46d
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
xor ebx, ebx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x18], ebx
lea edi, [esi + 0x170]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0xa0], ecx
mov ecx, dword [edi + 0xc]
add ecx, 0x64
push 0
add eax, 0x64
mov dword [esp + 0xb0], ecx
push 0x588420
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xac], eax
call fcn.004042c0
mov eax, dword [esi + 0x4d4]
add eax, 0x21
imul eax, eax, 0xb
add eax, ebx
mov eax, dword [esi + eax*4]
test eax, eax
js 0x40e507
cmp eax, 0x35
jg 0x40e507
cdq
and edx, 3
add eax, edx
sar eax, 2
inc eax
push eax
lea ecx, [esp + 0x28]
push 0x5892b4
push ecx
call fcn.00403cd0
add esp, 0xc
jmp 0x40e562
cmp eax, 0x3c
jne 0x40e515
push 1
push 0x588bb0
jmp 0x40e559
cmp eax, 0x3d
jne 0x40e523
push 1
push 0x588bb4
jmp 0x40e559
cmp eax, 0x3e
jne 0x40e531
push 1
push 0x588838
jmp 0x40e559
cmp eax, 0x3f
jne 0x40e53f
push 1
push 0x588840
jmp 0x40e559
cmp eax, 0x40
jne 0x40e54d
push 1
push 0x5888b8
jmp 0x40e559
cmp eax, 0x41
jne 0x40e562
push 1
push 0x5889e4
lea ecx, [esp + 0x2c]
call fcn.004042c0
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push 0x25
lea ebx, [esp + 0xa4]
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov ebx, dword [esp + 0x18]
inc ebx
add edi, 0x10
mov dword [esp + 0x18], ebx
cmp ebx, 0xb
jl 0x40e491
mov eax, dword [esi + 0x220]
mov ecx, dword [esi + 0x228]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x224]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esi + 0x22c]
add eax, 0x64
add ecx, 0x64
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], ecx
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e5ef
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x3c], 0
jne 0x40e62d
mov ecx, 0x588bac
movzx ebx, cx
push ebx
call fcn.00437bb8
test eax, eax
je 0x40e641
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00403eb0
jmp 0x40e63d
push 1
push 0x588bac
lea ecx, [esp + 0x28]
call fcn.004042c0
mov edi, dword [esp + 0x20]
mov byte [esp + 0xd0], 5
mov eax, dword [edi - 0xc]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
push 0x25
lea ebx, [esp + 0xa4]
push ebx
push eax
mov eax, dword [edx + 0x68]
push edi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0xd0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x230]
mov eax, dword [esi + 0x234]
mov edx, dword [esi + 0x238]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 0x23c]
add eax, 0x64
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0xc4c]
add ecx, 0x64
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov edi, dword [eax - 0xc]
cmp edi, 3
jl 0x40e6e5
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xfc]
push eax
call edx
mov eax, dword [esi + 0xc4c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
js 0x40e715
push 0x58883c
push eax
call fcn.0053518c
add esp, 8
test eax, eax
je 0x40e715
sub eax, dword [esi + 0xc4c]
sar eax, 1
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x40e73c
mov ebx, dword [esi + 0xc4c]
mov eax, dword [ebx - 0xc]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
push 0x25
lea edi, [esp + 0xa4]
push edi
push eax
mov eax, dword [edx + 0x68]
push ebx
call eax
jmp 0x40e8c5
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0xbc], eax
mov eax, dword [esi + 0x11c]
mov dword [esp + 0xb8], edx
cdq
sub eax, edx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0xa4]
sar eax, 1
add eax, ecx
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esi + 0xc4c]
mov dword [esp + 0xc4], eax
call fcn.0040c180
mov byte [esp + 0xd0], 6
mov eax, dword [eax]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x34], eax
push 0x29
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
mov byte [esp + 0xd0], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x11c]
mov ecx, dword [esp + 0xbc]
sub edi, dword [esp + 0x14]
cdq
sub eax, edx
mov dword [esp + 0xb4], ecx
sar eax, 1
add ecx, eax
mov dword [esp + 0xbc], ecx
dec edi
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0xc4c]
call fcn.0040c100
mov byte [esp + 0xd0], 7
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx]
push 0x21
lea ebx, [esp + 0xb4]
push ebx
push edx
mov edx, dword [edi + 0x68]
push eax
call edx
mov byte [esp + 0xd0], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e87d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x11c]
sub eax, 2
cdq
sub eax, edx
mov edx, dword [esi + 0xc8]
sar eax, 1
add eax, dword [esp + 0xa4]
lea ecx, [eax + 1]
push ecx
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xbc]
push ecx
push eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [edx + 4]
push eax
push ecx
call dword [sym.imp.gdi32.dll_Rectangle]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 5
call eax
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esi + 0xc8]
mov ecx, dword [ecx + 4]
add eax, 0x2a
push 5
shl eax, 4
mov edx, dword [eax + esi + 0xc]
add eax, esi
push 5
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push ecx
call dword [sym.imp.gdi32.dll_RoundRect]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xf4]
push eax
call edx
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push 0
call edx
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e943
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0xd0], 8
cmp dword [esi + 0x4d8], 0
mov dword [esp + 0x18], 0
jl 0x40ee40
lea ecx, [esi + 0x2a0]
lea edx, [esi + 0xc10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
push 0
push 0x588420
lea ecx, [esp + 0x40]
call fcn.004042c0
mov edi, dword [esp + 0x20]
add edi, 0x560
mov ebx, 4
mov eax, dword [edi]
push eax
cmp eax, 0xa
jge 0x40e9b7
push 0x588bb8
lea eax, [esp + 0x2c]
push eax
jmp 0x40e9c1
push 0x588bc4
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403cd0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0040c5d0
add edi, 4
dec ebx
jne 0x40e9a3
mov edi, dword [esp + 0x38]
push 0x2c
push edi
call fcn.005356ad
add esp, 8
test eax, eax
jne 0x40e9f9
or ebx, 0xffffffff
jmp 0x40e9ff
sub eax, edi
sar eax, 1
mov ebx, eax
mov dword [esp + 0x14], 1
test ebx, ebx
jns 0x40ea0d
xor ebx, ebx
mov eax, dword [edi - 0xc]
cmp ebx, 0x7ffffffe
jg 0x40ef59
lea ecx, [ebx + 1]
cmp ecx, eax
jle 0x40ea33
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x40eab3
mov ecx, eax
sub ecx, dword [esp + 0x14]
sub eax, ebx
sub eax, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
inc eax
cmp dword [edi - 4], 1
mov dword [esp + 0x30], eax
jle 0x40ea5f
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x3c]
call fcn.004040f0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add eax, eax
lea edx, [ebx + ecx]
push eax
lea ecx, [edi + edx*2]
push ecx
push eax
lea edx, [edi + ebx*2]
push edx
call fcn.00534acf
add esp, 0x10
cmp eax, 0x50
ja case.0x40ea8e.1
movzx eax, byte [eax + 0x40f4dc]
jmp dword [eax*4 + 0x40f4cc]
mov eax, dword [esp + 0x50]
test eax, eax
js 0x40ef6d
cmp eax, dword [edi - 8]
jg 0x40ef6d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push 0x25
push eax
mov eax, dword [edi - 0xc]
push eax
push edi
xor ebx, ebx
call edx
mov edi, dword [esp + 0x34]
cmp dword [edi], ebx
je 0x40ee21
mov eax, dword [esi + 0x98]
add esi, 0x94
cmp eax, ebx
je 0x40eb10
or ecx, 0xffffffff
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x1c], bx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [edi]
cmp eax, 1
jne 0x40ec81
mov eax, dword [0x5b6a8c]
push 0x588b50
push 0x498
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40edf6
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x40edf6
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x40edf6
mov edx, dword [esp + 0x30]
push edx
push ebx
call dword [sym.imp.kernel32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0x30]
push ecx
push edi
push eax
call fcn.00538f30
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x48]
push edx
push ebx
push eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40ec78
mov edi, dword [esp + 0x48]
cmp dword [0x5b6938], ebx
jne 0x40ec78
push 0x5b691c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov byte [esp + 0x1f], 1
cmp dword [0x5b6918], ebx
jne 0x40ec1c
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x8c]
push edx
push 0x5b6918
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp eax, ebx
je 0x40ec1c
mov byte [esp + 0x1f], 0
push 0x5b691c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp byte [esp + 0x1f], 0
je 0x40ec78
lea eax, [esp + 0x4c]
push eax
push edi
mov dword [esp + 0x70], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x54], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebx
cmp eax, ebx
je 0x40ec59
push ecx
jmp 0x40ec6a
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.00407050
mov edx, dword [esp + 0x6c]
push edx
mov dword [esp + 0x6c], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov edi, dword [esp + 0x14]
jmp 0x40ede8
cmp eax, 0xffffffff
jne 0x40edf6
mov eax, dword [0x5b6a8c]
push 0x588b50
push 0x49a
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40edf6
mov eax, dword [esp + 0x30]
push edi
push eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x40edf6
mov ecx, dword [esp + 0x30]
push edi
push ecx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x40edf6
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.kernel32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
push ecx
push edi
push eax
call fcn.00538f30
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40ede4
mov edi, dword [esp + 0x3c]
cmp dword [0x5b6938], ebx
jne 0x40ede4
push 0x5b691c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov byte [esp + 0x1f], 1
cmp dword [0x5b6918], ebx
jne 0x40ed88
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x7c]
push edx
push 0x5b6918
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp eax, ebx
je 0x40ed88
mov byte [esp + 0x1f], 0
push 0x5b691c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp byte [esp + 0x1f], 0
je 0x40ede4
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x60], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x34], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
cmp eax, ebx
je 0x40edc5
push ecx
jmp 0x40edd6
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00407050
mov edx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x5c], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edi, esi
call fcn.004069d0
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push ebx
push ecx
sub eax, 0x16
push edx
push eax
mov eax, dword [esp + 0x3c]
call fcn.004121e0
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
add dword [esp + 0x34], 4
add dword [esp + 0x20], 0x10
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4d8]
jle 0x40e984
mov ecx, dword [esi + 0x37c]
mov edx, dword [esi + 0x378]
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 4]
push 5
push 5
push ecx
mov ecx, dword [esi + 0x374]
push edx
mov edx, dword [esi + 0x370]
push ecx
push edx
push eax
call dword [sym.imp.gdi32.dll_RoundRect]
mov ecx, dword [esi + 0x4d4]
xor ebx, ebx
cmp dword [esi + ecx*4 + 0xbdc], ebx
jle 0x40ef2b
lea edi, [esi + 0x2a0]
jmp 0x40ee90
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x370]
mov dword [esp + 0xa0], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x4d4]
mov dword [esp + 0xac], edx
mov edx, eax
mov dword [esp + 0xa8], ecx
mov ecx, dword [esi + 0x378]
shl edx, 4
sub edx, eax
add edx, ebx
lea eax, [esi + edx*4 + 0x8d0]
sub ecx, 5
mov dword [esp + 0xa8], ecx
mov eax, dword [eax]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x2c], eax
push 0x26
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
push eax
call edx
mov eax, dword [esi + 0x4d4]
inc ebx
add edi, 0x10
cmp ebx, dword [esi + eax*4 + 0xbdc]
jl 0x40ee90
mov ecx, dword [esi + 0x4d4]
cmp dword [esi + ecx*4 + 0xbdc], 0
jne 0x40f013
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ef77
push 0x80004005
call fcn.00404270
push 0x80070216
call fcn.00404270
call fcn.00437a33
call fcn.00437a6b
push 0x80070057
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ecx, 0x588bcc
mov byte [esp + 0xd0], 9
test ecx, 0xffff0000
jne 0x40efb8
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00437bb8
test eax, eax
je 0x40efcc
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403eb0
jmp 0x40efc8
push 4
push 0x588bcc
lea ecx, [esp + 0x1c]
call fcn.004042c0
mov edi, dword [esp + 0x14]
mov byte [esp + 0xd0], 0xa
mov eax, dword [edi - 0xc]
mov ecx, dword [esi + 0xc8]
mov ebx, dword [ecx]
push 0x25
lea edx, [esi + 0x370]
push edx
push eax
mov eax, dword [ebx + 0x68]
push edi
call eax
add edi, 0xfffffff0
mov byte [esp + 0xd0], 8
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f013
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f02d
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ecx, 0x588bd8
mov byte [esp + 0xd0], 0xb
test ecx, 0xffff0000
jne 0x40f06e
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00437bb8
test eax, eax
je 0x40f082
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403eb0
jmp 0x40f07e
push 0x29
push 0x588bd8
lea ecx, [esp + 0x1c]
call fcn.004042c0
mov edi, dword [esp + 0x14]
mov byte [esp + 0xd0], 0xc
mov eax, dword [edi - 0xc]
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
push 0
lea ebx, [esi + 0x380]
push ebx
push eax
mov eax, dword [edx + 0x68]
push edi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0xd0], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
push 0xe6
call eax
call fcn.00437cf1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f0f5
push 0x80004005
call fcn.00404270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xd0], 0xd
mov eax, dword [esi + 0xc54]
cdq
mov ecx, 0x3c
idiv ecx
push edx
push eax
cmp eax, 0xa
jge 0x40f13a
cmp edx, 0xa
jge 0x40f12e
push 0x588c2c
jmp 0x40f150
push 0x588c48
lea eax, [esp + 0x24]
push eax
jmp 0x40f155
cmp edx, 0xa
jge 0x40f14b
push 0x588c64
lea ecx, [esp + 0x24]
push ecx
jmp 0x40f155
push 0x588c80
lea edx, [esp + 0x24]
push edx
call fcn.00403cd0
mov eax, dword [esp + 0x28]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx]
add esp, 0x10
push 0
push ebx
push edx
push eax
mov eax, dword [edi + 0x68]
call eax
mov ecx, dword [esi + 0xc5c]
mov edx, dword [esi + 0xc60]
mov edi, dword [esi + 0xc58]
mov eax, ecx
sub eax, edx
imul eax, eax, 0x64
push edi
push edx
push ecx
sub eax, edi
push eax
lea ecx, [esp + 0x28]
push 0x588c98
push ecx
mov dword [esi + 0xc50], eax
call fcn.00403cd0
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 0xc]
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx]
add esp, 0x18
push 0
push ebx
push eax
push edx
mov edx, dword [edi + 0x68]
call edx
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push 0x78
call edx
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esi + 0x10c]
push edx
call eax
mov eax, dword [esi + 0x3fc]
cmp dword [eax - 0xc], 0
jl 0x40f234
push 0x588cfc
push eax
call fcn.0053518c
add esp, 8
test eax, eax
je 0x40f234
sub eax, dword [esi + 0x3fc]
sar eax, 1
js 0x40f234
mov eax, dword [esi + 0x3fc]
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx]
push 1
lea edx, [esi + 0x3c0]
push edx
mov edx, dword [eax - 0xc]
push edx
mov edx, dword [edi + 0x68]
push eax
call edx
jmp 0x40f255
mov eax, dword [esi + 0x3fc]
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx]
push 0x25
lea edx, [esi + 0x3c0]
push edx
mov edx, dword [eax - 0xc]
push edx
push eax
mov eax, dword [edi + 0x68]
call eax
mov edi, dword [0x5b6a90]
call fcn.0044271b
mov edx, dword [esp + 0x54]
mov dword [eax + 0xc], edi
mov edi, dword [sym.imp.user32.dll_InvalidateRect]
mov ecx, 0x31
cmp cx, word [edx]
jne 0x40f280
mov eax, dword [esi + 0x20]
push 0
push ebx
push eax
call edi
mov ebx, dword [esp + 0x54]
mov ecx, 0x31
cmp cx, word [ebx + 2]
jne 0x40f29e
mov eax, dword [esi + 0x20]
push 0
lea edx, [esi + 0x390]
push edx
push eax
call edi
mov ecx, 0x31
cmp cx, word [ebx + 4]
jne 0x40f2b8
mov eax, dword [esi + 0x20]
push 0
lea edx, [esi + 0x3a0]
push edx
push eax
call edi
mov ecx, 0x31
cmp cx, word [ebx + 6]
jne 0x40f2d2
mov eax, dword [esi + 0x20]
push 0
lea edx, [esi + 0x3b0]
push edx
push eax
call edi
mov ecx, 0x31
cmp cx, word [ebx + 8]
jne 0x40f2ec
mov edx, dword [esi + 0x20]
push 0
lea eax, [esi + 0x3c0]
push eax
push edx
call edi
movzx eax, word [ebx + 0xa]
cmp eax, 0x31
jb 0x40f34b
cmp eax, 0x34
ja 0x40f34b
lea ecx, [eax - 0x32]
test ecx, ecx
js 0x40f312
mov edx, dword [esi + 0x20]
add eax, 0xffffffe1
shl eax, 4
push 0
add eax, esi
push eax
push edx
call edi
movzx eax, word [ebx + 0xa]
sub eax, 0x1e
shl eax, 4
add eax, esi
push 0
push eax
mov eax, dword [esi + 0x20]
push eax
call edi
movzx eax, word [ebx + 0xa]
lea ecx, [eax - 0x30]
cmp ecx, 3
jg 0x40f3f8
mov edx, dword [esi + 0x20]
add eax, 0xffffffe3
shl eax, 4
push 0
add eax, esi
push eax
push edx
jmp 0x40f3f6
cmp eax, 0x35
jb 0x40f3f8
cmp eax, 0x3f
ja 0x40f3f8
lea ecx, [eax - 0x36]
test ecx, ecx
js 0x40f375
mov edx, dword [esi + 0x20]
add eax, 0xffffffe1
shl eax, 4
push 0
add eax, esi
push eax
push edx
call edi
movzx eax, word [ebx + 0xa]
sub eax, 0x1e
shl eax, 4
add eax, esi
push 0
push eax
mov eax, dword [esi + 0x20]
push eax
call edi
movzx eax, word [ebx + 0xa]
lea ecx, [eax - 0x34]
cmp ecx, 0xa
jg 0x40f3a7
mov edx, dword [esi + 0x20]
add eax, 0xffffffe3
shl eax, 4
push 0
add eax, esi
push eax
push edx
call edi
movzx eax, word [ebx + 0xa]
sub eax, 0x1e
shl eax, 4
mov ecx, dword [eax + esi]
add eax, esi
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xa8], edx
mov eax, dword [eax + 0xc]
add ecx, 0x78
add eax, 0x50
mov dword [esp + 0xac], eax
push 0
lea eax, [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esi + 0x20]
push eax
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
mov byte [esp + 0xd0], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f42a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f452
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f47a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00534a4b
mov esp, ebp
pop ebp
ret 4