Function at 0x40c340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54c296
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5a4e60]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x5a4e60]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040e4f0
mov eax, dword [esi + 0x4ac]
mov ecx, dword [esi + 0x4b0]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push eax
xor edx, edx
mov edi, esi
mov dword [esi + 0x9c], 0x1e
mov dword [esi + 0xac], 4
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
call fcn.0040e610
mov eax, dword [esi + 0x4c0]
push eax
call fcn.0040e360
xor eax, eax
jmp 0x40c3e0
mov ecx, dword [esi + 0x4bc]
mov edx, dword [ecx - 0xc]
cmp eax, ebx
jl 0x40c419
cmp eax, edx
jge 0x40c419
lea ecx, [ecx + eax*2]
push 0xa
push ecx
call fcn.00523e32
add esp, 8
cmp eax, ebx
je 0x40c419
sub eax, dword [esi + 0x4bc]
sar eax, 1
cmp eax, 0xffffffff
je 0x40c419
inc dword [esi + 0x4c8]
inc eax
jmp 0x40c3e0
mov edx, dword [esi + 0x20]
xor eax, eax
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0042bf06
push ebx
push ebx
mov edi, eax
mov eax, dword [esi + 0x20]
push 0x31
push eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0042c1da
lea ecx, [esp + 0x7c]
push ecx
mov dword [esi + 0x4cc], eax
mov edx, dword [eax + 4]
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x4cc]
mov dword [esp + 0x8c], 0x190
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, edi
call edx
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x400
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x4bc]
push 0xffffffffffffffff
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x4b4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x6c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 0x3c]
cmp eax, ecx
jge 0x40c4fe
add ecx, 0x3c
jmp 0x40c500
mov ecx, eax
mov eax, dword [esi + 0x4c8]
lea eax, [eax + eax*2 + 0x5a]
sub eax, dword [esp + 0x70]
push 6
add eax, dword [esp + 0x7c]
add eax, dword [esp + 0x30]
push eax
push ecx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00426659
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x4c4]
push 0x1388
push esi
cmp eax, 4
jne 0x40c7ec
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
lea ecx, [esi + 0x4d4]
cdq
sub eax, edx
mov edx, dword [esi + 0x4d4]
mov edx, dword [edx + 0x160]
sar eax, 1
sub eax, 0xa
mov dword [esp + 0x7c], eax
sub eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
sub eax, 0x1e
mov dword [esp + 0x80], eax
sub eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push 0x50000000
push 0x57d1a4
call edx
mov eax, dword [esi + 0x4b4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBitmap.0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xf4], ebx
call fcn.0042c1ee
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x58]
cdq
and edx, 3
lea ebx, [edx + eax]
mov edx, dword [esp + 0x5c]
lea ecx, [esi + 0x568]
sar ebx, 2
mov dword [esp + 0x10], edx
call fcn.00427df9
mov eax, dword [esp + 0x10]
push 0
push 4
push 0x19
push eax
push ebx
lea ecx, [esi + 0x568]
call fcn.00427f3c
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x56c]
push 0xff00ff
push ecx
push eax
call fcn.0042af32
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.004082a0
mov eax, dword [esp + 0x10]
push 6
push eax
push ebx
push 0
push 0
push 0
lea ecx, [esi + 0x4d4]
call fcn.00426659
mov edx, dword [esi + 0x4f4]
lea ecx, [esi + 0x550]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x1c]
call fcn.0042c21c
mov ebx, vtable.CBitmap.0
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
call fcn.004084b0
push 1
lea ecx, [esi + 0x560]
push 0x57e8c8
call fcn.00404630
mov eax, dword [esi + 0x4f4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x28]
push 0x1389
mov eax, 0xffffffec
sub eax, ecx
sub dword [esp + 0x70], eax
push esi
lea edx, [ecx + 0x14]
add dword [esp + 0x7c], edx
mov edx, dword [esi + 0x60c]
mov edx, dword [edx + 0x160]
lea eax, [esp + 0x74]
push eax
lea edi, [esi + 0x60c]
push 0x50000000
push 0x57d1a4
mov ecx, edi
call edx
mov esi, dword [esi + 0x4b8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xf4], 1
call fcn.0042c1ee
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
cdq
and edx, 3
lea esi, [edx + eax]
lea ecx, [edi + 0x94]
sar esi, 2
call fcn.00427df9
push 0
push 4
push 0x19
push ebx
push esi
lea ecx, [edi + 0x94]
call fcn.00427f3c
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x98]
push 0xff00ff
push edx
push eax
call fcn.0042af32
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004082a0
push 6
push ebx
push esi
push 0
push 0
push 0
mov ecx, edi
call fcn.00426659
mov edx, dword [edi + 0x20]
lea ecx, [edi + 0x7c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
call fcn.0042c21c
mov dword [esp + 0xf0], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBitmap.0
call fcn.004084b0
push 1
lea ecx, [edi + 0x8c]
push 0x57e8cc
call fcn.00404630
mov eax, dword [edi + 0x20]
push 1
push 0
push eax
jmp 0x40c97b
cmp eax, 1
mov eax, dword [esp + 0x7c]
jne 0x40c8fc
sub eax, dword [esp + 0x74]
lea ecx, [esi + 0x4d4]
cdq
sub eax, edx
mov edx, dword [esi + 0x4d4]
mov edx, dword [edx + 0x160]
sar eax, 1
sub eax, 0xa
mov dword [esp + 0x7c], eax
sub eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
sub eax, 0x1e
mov dword [esp + 0x80], eax
sub eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push 0x50000000
push 0x57d1a4
call edx
mov eax, dword [esi + 0x4b4]
push 1
push eax
lea ebx, [esi + 0x4d4]
call fcn.0040d840
push 2
lea ecx, [esi + 0x560]
push 0x57e8d0
call fcn.00404630
mov ecx, dword [esi + 0x4f4]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ecx
call edi
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
lea ecx, [edx + eax + 0x14]
mov edx, dword [esp + 0x74]
lea eax, [edx + eax + 0x14]
mov edx, dword [esi + 0x60c]
mov edx, dword [edx + 0x160]
push 0x1389
push esi
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x74]
push eax
lea ebx, [esi + 0x60c]
push 0x50000000
mov dword [esp + 0x7c], ecx
push 0x57d1a4
mov ecx, ebx
call edx
mov eax, dword [esi + 0x4b8]
push 1
push eax
call fcn.0040d840
push 2
lea ecx, [ebx + 0x8c]
push 0x57e8d8
call fcn.00404630
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
call edi
jmp 0x40c981
sub eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 0x4d4]
mov edx, dword [edx + 0x160]
sar eax, 1
mov dword [esp + 0x74], eax
add eax, ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
sub eax, 0x1e
mov dword [esp + 0x80], eax
sub eax, dword [esp + 0x34]
lea ebx, [esi + 0x4d4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push 0x50000000
push 0x57e8d0
mov ecx, ebx
call edx
mov eax, dword [esi + 0x4b4]
push 1
push eax
call fcn.0040d840
push 2
lea ecx, [ebx + 0x8c]
push 0x57e8d0
call fcn.00404630
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523022
mov esp, ebp
pop ebp
ret