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

Disassembly:
push 0xffffffffffffffff
push 0x53e726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
mov ebx, ecx
mov ecx, dword [0x591d54]
mov eax, dword [0x591ca4]
dec ecx
push ebp
neg ecx
sbb ecx, ecx
push esi
and ecx, 0xfffffffe
push edi
push eax
add ecx, 2
push 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.0051d2d2
mov eax, dword [0x591d54]
mov edx, dword [0x591ca8]
dec eax
push edx
neg eax
sbb eax, eax
push 0
and al, 0xfe
lea ecx, [esp + 0x78]
add eax, 2
mov dword [esp + 0x10c], 0
push eax
call fcn.0051d2d2
mov esi, dword [esp + 0x10c]
mov edi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov byte [esp + 0x108], 1
mov ecx, dword [esi + 8]
push ecx
call edi
push eax
call fcn.0051d250
mov edx, dword [esp + 0x114]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x110]
push edx
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, ebx
call fcn.0047c7a0
mov eax, 8
lea ecx, [esp + 0xb8]
mov edx, 4
mov ebp, dword [ecx]
add ecx, 4
add eax, ebp
dec edx
jne 0x47db28
mov edx, dword [esp + 0x120]
mov ecx, dword [0x591d04]
add edx, ecx
mov ecx, dword [0x5922cc]
imul ecx, eax
mov eax, dword [0x5922d0]
mov dword [esp + 0x120], edx
add ecx, edx
mov edx, dword [0x591d10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], ecx
lea eax, [eax + edx*2 + 1]
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.004a92c0
mov ecx, dword [0x58f614]
mov dword [esp + 0x60], eax
mov dword [esp + 0x10], ecx
mov edx, dword [0x591c50]
lea ecx, [esp + 0x64]
push edx
mov byte [esp + 0x108], 2
call fcn.0051d322
mov eax, dword [0x591c30]
lea ecx, [esp + 0x58]
push eax
mov byte [esp + 0x108], 3
call fcn.0051d322
mov ecx, dword [0x591c2c]
mov byte [esp + 0x104], 4
push ecx
lea ecx, [esp + 0x50]
call fcn.0051d322
mov edx, dword [esi + 8]
push 2
push edx
mov byte [esp + 0x10c], 5
call edi
push eax
call fcn.0051d250
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x124]
mov ebp, dword [esp + 0x118]
add ecx, 0x16
mov edi, dword [edx]
mov dword [esp + 0x88], ecx
test ebp, ebp
jne 0x47dc55
mov eax, dword [0x591d08]
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x90], edi
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x134]
mov dword [esp + 0x98], ecx
push eax
push esi
mov ecx, ebx
call fcn.00497160
mov ecx, dword [0x591d08]
lea edi, [edi + ecx*2]
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x80]
push edx
call fcn.004cfcd0
test ebp, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], 0
jle 0x47dc91
lea eax, [ebp - 1]
mov ecx, ebx
push eax
call fcn.00496a60
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x47dc91
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], ebp
cmp ebp, eax
jge 0x47e33c
mov ecx, dword [esp + 0x128]
cmp edi, dword [ecx + 0xc]
jg 0x47e42d
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], edi
add eax, ecx
lea ebp, [edi + edx]
push eax
mov ecx, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x80], eax
call fcn.004a42c0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CRgn.0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x98]
inc eax
push ecx
mov byte [esp + 0x108], 0xb
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebp
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x28]
call fcn.0051d265
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x130]
test edx, edx
jne 0x47dd55
xor ecx, ecx
jmp 0x47dd58
mov ecx, dword [edx + 4]
mov edx, dword [edx + 4]
push 4
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp dword [esp + 0x1c], 1
jne 0x47dd8f
mov ecx, dword [0x591c4c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [0x591c50]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
lea ecx, [esp + 0x70]
push ecx
jmp 0x47ddbe
mov eax, dword [0x591c28]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ebp, dword [esp + 0x18]
xor eax, eax
test ebp, ebp
mov edx, dword [esi]
setne al
add eax, 4
mov ecx, dword [eax*4 + 0x591c1c]
push ecx
mov ecx, esi
call dword [edx + 0x2c]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0051c95a
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x47de55
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x47de42
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push eax
call fcn.004cfb80
mov ecx, dword [ebx + 0x50]
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1c]
test eax, eax
jne 0x47de31
mov eax, dword [ebx + 0x3c]
cmp eax, 6
jne 0x47de17
cmp ebp, 0x10000000
je 0x47de42
cmp eax, 7
jne 0x47de24
cmp ebp, 0x20000000
je 0x47de42
cmp eax, 8
jne 0x47de31
cmp ebp, 0x30000000
je 0x47de42
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x47dddd
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jge 0x47de55
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x2c]
cmp eax, dword [edx + 4]
jl 0x47e2bb
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, eax
je 0x47de7e
cmp dword [0x591d64], eax
jne 0x47de9e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x120]
lea ecx, [esp + 0x24]
push ecx
push edi
push edx
push eax
push esi
mov ecx, ebx
call fcn.00498da0
mov eax, 1
mov ecx, dword [0x591d10]
lea edx, [edi + ecx + 1]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x48], edx
jl 0x47dee3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
push 0
push eax
call fcn.004cfc50
test byte [eax], 8
je 0x47dee3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x134]
push edx
call fcn.00470df0
mov edi, dword [esp + 0x120]
xor ebp, ebp
mov dword [esp + 0x20], ebp
jmp 0x47def6
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x47df22
cmp dword [0x591d64], 1
jne 0x47df22
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x124]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.00498e80
mov ecx, dword [0x5922cc]
mov eax, dword [esp + ebp*4 + 0xb8]
imul eax, ecx
mov edx, dword [esp + 0x128]
add edi, ecx
add eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [edx + 8]
cmp edi, eax
jg 0x47e29d
mov eax, dword [esp + 0x30]
add eax, ecx
mov ecx, edx
cmp eax, dword [ecx]
jl 0x47e29d
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
lea eax, [esp + 0xb4]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [0x591d64], 1
jne 0x47dfad
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x5922cc]
push edx
mov edx, dword [esp + 0xb8]
add edx, ecx
push eax
push edx
push esi
mov ecx, ebx
call fcn.00498e80
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x47e062
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x47dfe7
mov eax, dword [esp + 0x114]
cmp eax, 6
jne 0x47dfd5
mov eax, dword [0x58c950]
push eax
jmp 0x47e019
cmp eax, 7
mov eax, dword [0x58c958]
je 0x47dfe4
mov eax, dword [0x58c95c]
push eax
jmp 0x47e019
cmp ebp, 1
jne 0x47e005
mov eax, dword [esp + 0x114]
cmp eax, 6
mov eax, dword [0x58c954]
je 0x47e002
mov eax, dword [0x58c960]
push eax
jmp 0x47e019
cmp ebp, 2
jne 0x47e012
mov eax, dword [0x58c908]
push eax
jmp 0x47e019
mov ecx, dword [0x58c924]
push ecx
lea ecx, [esp + 0x14]
call fcn.00514473
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xc
add eax, 2
mov ecx, dword [eax*4 + 0x591c1c]
push ecx
mov ecx, esi
call dword [edx + 0x30]
lea edx, [esp + 0x24]
lea eax, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push ebp
push edx
jmp 0x47e295
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
push 0
push eax
call fcn.004cfc50
mov ebp, eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47e0af
mov ecx, dword [esp + 0x110]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00514473
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x47e271
mov eax, dword [esi]
mov ecx, dword [0x591c84]
jmp 0x47e26b
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x47e1df
cmp dword [esp + 0x114], 6
jne 0x47e16e
lea ecx, [esp + 0x10]
call fcn.005142c1
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004c94d0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x47e271
push ebp
call fcn.004c4e60
mov al, byte [eax]
add esp, 4
cmp al, 0x17
jne 0x47e115
mov edx, dword [esi]
mov eax, 0x1b
mov ecx, esi
mov eax, dword [eax*4 + 0x591c1c]
push eax
call dword [edx + 0x30]
jmp 0x47e271
cmp al, 0x18
jne 0x47e132
mov edx, dword [esi]
mov eax, 0x1c
mov ecx, esi
mov eax, dword [eax*4 + 0x591c1c]
push eax
call dword [edx + 0x30]
jmp 0x47e271
cmp al, 0x1a
jne 0x47e14f
mov edx, dword [esi]
mov eax, 0x1e
mov ecx, esi
mov eax, dword [eax*4 + 0x591c1c]
push eax
call dword [edx + 0x30]
jmp 0x47e271
sub al, 0x19
mov edx, dword [esi]
neg al
sbb eax, eax
mov ecx, esi
and al, 0xe6
add eax, 0x1d
mov eax, dword [eax*4 + 0x591c1c]
push eax
call dword [edx + 0x30]
jmp 0x47e271
push ebp
call fcn.004c4e60
mov eax, dword [eax]
add esp, 4
test eax, eax
jg 0x47e188
lea ecx, [esp + 0x10]
call fcn.005142c1
jmp 0x47e1c6
lea ecx, [esp + 0xc8]
push ecx
push eax
call fcn.004dc070
add esp, 8
lea ecx, [esp + 0x10]
push 0x581278
call fcn.00514473
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x10]
push edx
call fcn.005146c6
push 0x581278
lea ecx, [esp + 0x14]
call fcn.005146c6
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x47e271
mov eax, dword [esi]
mov ecx, dword [0x591c28]
jmp 0x47e26b
cmp eax, 2
jne 0x47e244
test byte [ebp], 2
je 0x47e29d
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ecx, dword [esp + 0x1c]
push eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x28]
and ecx, 0xffffffe1
push eax
mov eax, dword [esp + 0x74]
add ecx, 0x2b
push 0x59ec50
add eax, 0xfffffff5
mov edx, dword [ecx*4 + 0x591c1c]
mov ecx, dword [esp + 0x54]
push edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x40]
push eax
lea eax, [ecx + edi - 0xb]
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004aad00
jmp 0x47e29d
mov ecx, dword [esp + 0x110]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00514473
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x47e271
mov eax, dword [esi]
mov ecx, dword [0x591c6c]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea edx, [esp + 0x24]
lea eax, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00498c20
mov edx, dword [esp + 0x30]
mov eax, dword [0x5922cc]
lea edi, [edx + eax]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 4
mov dword [esp + 0x20], eax
jl 0x47def2
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x47e2c7
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test ecx, ecx
je 0x47e2d9
lea eax, [esp + 0x64]
jmp 0x47e2e5
test eax, eax
lea eax, [esp + 0x4c]
je 0x47e2e5
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.0051c95a
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x104], 0xc
call fcn.0051d2bc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
inc eax
mov byte [esp + 0x104], 5
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47dca1
cmp dword [0x591d64], 1
jne 0x47e36a
mov eax, dword [esp + 0x120]
lea ebp, [edi - 1]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0051cdaa
mov edx, dword [esp + 0x34]
push ebp
push edx
mov ecx, esi
call fcn.0051cdf6
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x124]
push ecx
mov ecx, esi
mov dword [eax], edi
call fcn.0051c95a
mov edx, dword [esp + 0x84]
mov ecx, esi
push edx
call fcn.0051c95a
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 0xd
call fcn.0051d2bc
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x104], 0xe
call fcn.0051d2bc
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 0xf
call fcn.0051d2bc
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 1
call fcn.00514336
mov dword [esp + 0x70], esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x104], 0x10
call fcn.0051d2bc
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x104], 0x11
call fcn.0051d2bc
xor eax, eax
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf8
ret 0x2c
mov edx, dword [esp + 0x54]
mov ecx, esi
push edx
call fcn.0051c95a
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x104], 6
call fcn.0051d2bc
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x104], 7
call fcn.0051d2bc
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 8
call fcn.0051d2bc
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 1
call fcn.00514336
mov dword [esp + 0x70], esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x104], 9
call fcn.0051d2bc
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x104], 0xa
call fcn.0051d2bc
mov eax, 1
jmp 0x47e412