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

Disassembly:
push 0xffffffffffffffff
push 0x43e5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [esp + 0x178]
push ebx
push ebp
push esi
mov edx, dword [eax + 8]
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
lea eax, [esp + 0xa0]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [edi + 0xc0]
test eax, eax
je 0x403a95
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x1a8]
push eax
lea edx, [esp + 0xa4]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [edi + 0xdc]
cmp eax, 4
ja case.default.0x403aba
jmp dword [eax*4 + 0x4041f0]
mov dword [edi + 0xdc], 0
jmp case.default.0x403aba
mov eax, 0x32
jmp 0x403ae7
mov eax, 0x12c
jmp 0x403ae7
mov eax, 0x4b0
jmp 0x403ae7
mov eax, 0xfa0
mov ecx, dword [edi + 0x8c]
mov dword [edi + 0xdc], eax
add ecx, eax
mov dword [edi + 0x8c], ecx
mov ecx, dword [edi + 0x8c]
lea edx, [esp + 0x114]
push ecx
push 0x4511f4
push edx
call fcn.0040d849
mov eax, dword [edi + 0xdc]
lea ecx, [esp + 0xbc]
push eax
push 0x4511f4
push ecx
call fcn.0040d849
mov edx, dword [esi]
add esp, 0x18
lea ebp, [edi + 0xd0]
mov ecx, esi
push ebp
lea ebx, [edi + 0xd8]
call dword [edx + 0x28]
push 1
mov ecx, esi
mov dword [ebx], eax
call fcn.00429eec
mov eax, dword [esi]
push 0x1a3fb
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x14]
call fcn.00425b69
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 0
mov ecx, dword [eax - 8]
push ecx
push eax
push 0xf0
push 0x14
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.00425afb
test ebx, ebx
je 0x403bb1
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
lea eax, [edi + 0xc8]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov dword [ebx], eax
mov eax, dword [esi]
push 0x264fe
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x14]
call fcn.00425b69
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 1
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x217
push 0xe6
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.00425afb
mov ecx, dword [ebx]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [edi + 0xe0]
cmp eax, 4
ja case.default.0x403c2c
jmp dword [eax*4 + 0x404204]
mov dword [edi + 0xe0], 0
jmp case.default.0x403c2c
mov eax, 0x32
jmp 0x403c59
mov eax, 0x12c
jmp 0x403c59
mov eax, 0x4b0
jmp 0x403c59
mov eax, 0xfa0
mov ecx, dword [edi + 0xb4]
mov dword [edi + 0xe0], eax
add ecx, eax
mov dword [edi + 0xb4], ecx
mov edx, dword [edi + 0xb4]
lea eax, [esp + 0x114]
push edx
push 0x4511f4
push eax
call fcn.0040d849
mov ecx, dword [edi + 0xe0]
lea edx, [esp + 0xbc]
push ecx
push 0x4511f4
push edx
call fcn.0040d849
mov eax, dword [esi]
add esp, 0x18
mov ecx, esi
push ebp
call dword [eax + 0x28]
push 1
mov ecx, esi
mov dword [ebx], eax
call fcn.00429eec
mov edx, dword [esi]
push 0xff
mov ecx, esi
call dword [edx + 0x30]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x10]
push eax
call fcn.00425b69
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 2
mov ecx, dword [eax - 8]
push ecx
push eax
push 0xf0
push 0x29e
mov ecx, esi
call dword [edx + 0x5c]
or ebp, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], ebp
call fcn.00425afb
test ebx, ebx
je 0x403d19
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
lea eax, [edi + 0xc8]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov dword [ebx], eax
mov eax, dword [esi]
push 0x2a8fe
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x14]
call fcn.00425b69
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 3
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x217
push 0x208
mov ecx, esi
call dword [edx + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], ebp
call fcn.00425afb
mov ecx, dword [ebx]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1a0]
mov eax, 0x5a
sub edx, ecx
mov dword [esp + 0x30], 0xffffff
mov dword [esp + 0x34], 0xff0000
mov dword [esp + 0x38], 0xff00
mov dword [esp + 0x3c], 0xff
mov dword [esp + 0x40], 0xffff
mov dword [esp + 0x44], 0xffff00
mov dword [esp + 0x48], 0x800000
mov dword [esp + 0x4c], 0x800080
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x403df0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 0x14]
mov ebp, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
mov ebx, 0x19
mov dword [esp + 0x10], edx
lea ecx, [ebx - 0x14]
lea edx, [ebx + 0x271]
mov dword [esp + 0x78], ecx
lea ecx, [eax + 0x14]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x285]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x98], edx
mov edx, dword [ecx]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x94], eax
cmp byte [edx + ebp], 0
je 0x403efb
mov eax, dword [ecx]
xor ecx, ecx
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
lea ecx, [esp + 0x88]
push edx
call fcn.0042a892
test eax, eax
je 0x403e7e
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x88], vtable.CGdiObject.0
lea ecx, [esp + 0x88]
mov dword [esp + 0x180], 4
call fcn.0042a87c
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [edx]
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
mov ecx, edi
push edx
call fcn.00404dc0
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x34]
push eax
call fcn.00404d40
lea ecx, [esp + 0x7c]
push eax
push ecx
mov ecx, esi
call fcn.0043491a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dl, byte [ecx + ebp]
add ecx, ebp
test dl, dl
je 0x403fa4
xor edx, edx
mov dl, byte [ecx]
lea ecx, [esp + 0x28]
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.0042a892
test eax, eax
je 0x403f27
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x90]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x28], vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x180], 5
call fcn.0042a87c
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x180], 0xffffffff
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.00404dc0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x34]
push ecx
mov ecx, edi
call fcn.00404d40
lea edx, [esp + 0x94]
push eax
push edx
mov ecx, esi
call fcn.0043491a
mov eax, dword [esp + 0x18]
add ebx, 0x14
inc ebp
cmp ebx, 0x91
jl 0x403e0b
mov edx, dword [esp + 0x14]
add eax, 0x14
add edx, 4
cmp eax, 0xaa
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x403de8
mov edx, dword [esp + 0x20]
test edx, edx
jbe 0x4041d3
mov ecx, dword [esp + 0x19c]
mov ebx, dword [esp + 0x198]
mov eax, 0x46
sub ebx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x24]
xor ebp, ebp
test ecx, ecx
jbe 0x4041b2
lea ecx, [eax + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
add ebx, ecx
mov dword [esp + 0x10], ebx
mov ebx, 0x1c7
lea ecx, [ebx - 0x132]
lea edx, [ebx - 0x11e]
mov dword [esp + 0x68], ecx
lea ecx, [eax + 0x14]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx - 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], edx
mov edx, dword [ecx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
cmp byte [edx + ebp], 0
je 0x4040fb
mov eax, dword [ecx]
xor ecx, ecx
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
lea ecx, [esp + 0x28]
push edx
call fcn.0042a892
test eax, eax
je 0x404084
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x28], vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x180], 6
call fcn.0042a87c
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [edx]
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
mov ecx, edi
push edx
call fcn.00404dc0
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x34]
push eax
call fcn.00404d40
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, esi
call fcn.0043491a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dl, byte [ecx + ebp]
add ecx, ebp
test dl, dl
je 0x40419e
xor edx, edx
mov dl, byte [ecx]
lea ecx, [esp + 0x50]
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.0042a892
test eax, eax
je 0x404127
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x50], vtable.CGdiObject.0
lea ecx, [esp + 0x50]
mov dword [esp + 0x180], 7
call fcn.0042a87c
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x180], 0xffffffff
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.00404dc0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x34]
push ecx
mov ecx, edi
call fcn.00404d40
lea edx, [esp + 0x5c]
push eax
push edx
mov ecx, esi
call fcn.0043491a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc ebp
add ebx, 0x14
cmp ebp, ecx
jb 0x404026
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, 0x14
add edx, 4
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jne 0x404002
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 0x24