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

Disassembly:
push 0xffffffffffffffff
push 0x55660b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
mov ebp, ecx
mov eax, dword [ebx + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 0x18], ebp
je 0x49ef82
mov ecx, dword [0x5b1054]
inc eax
dec ecx
mov dword [esp + 0x68], eax
mov eax, dword [0x5b0fa4]
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xfffffffe
push 0
add ecx, 2
push ecx
lea ecx, [esp + 0x68]
call fcn.00530ffa
mov eax, dword [0x5b1054]
mov edx, dword [0x5b0fa8]
dec eax
push edx
neg eax
sbb eax, eax
push 0
and al, 0xfe
lea ecx, [esp + 0x74]
add eax, 2
mov dword [esp + 0xd8], 0
push eax
call fcn.00530ffa
mov esi, dword [esp + 0xd8]
mov edi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov byte [esp + 0xd4], 1
mov ecx, dword [esi + 8]
push ecx
call edi
push eax
call fcn.00530f78
lea edx, [esp + 0xb0]
mov ecx, ebx
push edx
mov dword [esp + 0x44], eax
call fcn.004d2ec0
mov eax, 8
lea ecx, [esp + 0xb0]
mov edx, 5
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec edx
jne 0x49e833
mov ecx, dword [esp + 0xe8]
mov ebx, dword [0x5b1004]
add ecx, ebx
lea ebx, [eax + 2]
imul ebx, dword [0x5b15cc]
mov eax, dword [0x5b15d0]
add ebx, ecx
cmp eax, 0xb
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], 0xb
jl 0x49e879
mov dword [esp + 0x2c], eax
mov eax, dword [0x5b1010]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax*2 + 1]
mov eax, dword [0x5ada84]
mov dword [esp + 0x74], edx
mov dword [esp + 0x10], eax
mov ecx, dword [0x5b0f50]
mov byte [esp + 0xd0], 2
push ecx
lea ecx, [esp + 0x50]
call fcn.0053104a
mov edx, dword [0x5b0f48]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0xd4], 3
call fcn.0053104a
mov eax, dword [0x5b0f44]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0xd4], 4
call fcn.0053104a
mov ecx, dword [esi + 8]
push 2
push ecx
mov byte [esp + 0xd8], 5
call edi
push eax
call fcn.00530f78
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0xe0]
add ecx, 0x16
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xec]
test ebp, ebp
mov edi, dword [ecx]
jne 0x49e962
mov edx, dword [0x5b1008]
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edx]
mov edx, dword [esp + 0xf8]
push edx
push esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], eax
call fcn.0049e370
add edi, dword [0x5b1008]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], ebp
cmp ebp, eax
jge 0x49eeb5
mov eax, dword [esp + 0xf0]
cmp edi, dword [eax + 0xc]
jg 0x49ef9f
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], edi
lea eax, [edx + ebp]
lea ebx, [edi + ecx]
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x80], eax
call fcn.004ab520
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CRgn.0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xe8]
lea edx, [esp + 0x90]
inc ecx
push edx
mov byte [esp + 0xd4], 0xb
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x20]
call fcn.00530f8d
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf4]
test ecx, ecx
jne 0x49ea25
xor edx, edx
jmp 0x49ea28
mov edx, dword [ecx + 4]
push 4
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
cmp eax, 1
jne 0x49ea60
mov eax, dword [0x5b0f4c]
mov ecx, esi
push eax
call dword [edx + 0x30]
mov eax, dword [0x5b0f50]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
lea ecx, [esp + 0x6c]
push ecx
jmp 0x49ea89
mov eax, dword [0x5b0f28]
mov ecx, esi
push eax
call dword [edx + 0x30]
xor eax, eax
mov edx, dword [esi]
test ebp, ebp
setne al
add eax, 0xa
mov ecx, dword [eax*4 + 0x5b0f1c]
push ecx
mov ecx, esi
call dword [edx + 0x2c]
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.00530619
mov eax, dword [esp + 0xf0]
cmp ebx, dword [eax + 4]
jl 0x49ee42
cmp ebp, 1
je 0x49eaae
cmp dword [0x5b1064], 1
jne 0x49eacb
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push edx
push eax
push esi
call fcn.0049fff0
mov ecx, dword [0x5b1010]
cmp ebp, 1
lea edx, [edi + ecx + 1]
mov dword [esp + 0x64], edx
jl 0x49eb0a
mov eax, dword [esp + 0xdc]
dec ebp
push 0
push ebp
lea ecx, [eax + 0x18]
call fcn.004d73d0
test byte [eax + 5], 4
je 0x49eb0a
mov ecx, dword [esp + 0x3c]
add ebx, ecx
mov ecx, dword [esp + 0xf8]
push ebx
call fcn.00478020
mov ebx, dword [esp + 0xe8]
xor ebp, ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49eb45
cmp dword [0x5b1064], 1
jne 0x49eb45
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xec]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
push esi
call fcn.004a00d0
mov ecx, dword [0x5b15cc]
mov edi, dword [esp + ebp*4 + 0xb0]
mov eax, dword [esp + 0xf0]
imul edi, ecx
mov edx, dword [eax + 8]
add ebx, ecx
add edi, ebx
cmp ebx, edx
mov dword [esp + 0x28], edi
jg 0x49ee23
mov edx, dword [eax]
add ecx, edi
cmp ecx, edx
jl 0x49ee23
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + edx]
lea edx, [esp + 0xa0]
push ecx
push edi
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [0x5b1064], 1
jne 0x49ebc9
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x5b15cc]
push ecx
mov ecx, dword [esp + 0xb0]
add ecx, eax
push edx
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.004a00d0
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x49ec5b
test ebp, ebp
jne 0x49ebe0
mov eax, dword [0x5aad58]
jmp 0x49ec07
cmp ebp, 1
jne 0x49ebec
mov eax, dword [0x5aad7c]
jmp 0x49ec07
cmp ebp, 2
jne 0x49ebf8
mov eax, dword [0x5aad90]
jmp 0x49ec07
mov eax, dword [0x5aad80]
cmp ebp, 3
je 0x49ec07
mov eax, dword [0x5aad70]
push eax
lea ecx, [esp + 0x14]
call fcn.00528088
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xc
add eax, 2
mov ecx, dword [eax*4 + 0x5b0f1c]
push ecx
mov ecx, esi
call dword [edx + 0x30]
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0xe8]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push ebp
push edx
push esi
call fcn.0049fe70
jmp 0x49ee23
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x30]
dec ecx
push 0
lea ebp, [eax + 0x18]
push ecx
mov ecx, ebp
call fcn.004d73d0
mov edi, eax
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x49ece4
test byte [edi + 4], 1
je 0x49ee1b
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ecx, dword [esp + 0x14]
push eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x20]
and ecx, 0xffffffe1
push eax
mov eax, dword [esp + 0x34]
add ecx, 0x2b
push 0x5bdf70
add eax, 0xfffffff5
mov edx, dword [ecx*4 + 0x5b0f1c]
mov ecx, dword [esp + 0x70]
push edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [ecx + ebx - 0xb]
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004b2020
jmp 0x49ee1b
test eax, eax
jne 0x49ed14
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00528088
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49eded
mov eax, dword [esi]
mov ecx, dword [0x5b0fbc]
jmp 0x49ede7
cmp eax, 1
jne 0x49ed6f
mov ebx, dword [esp + 0xdc]
mov eax, dword [edi]
push 0xffff
push 0
mov ecx, dword [ebx + 0xd0]
lea edx, [esp + 0x18]
push 0
push edx
push eax
call fcn.00454b30
test eax, eax
jne 0x49ed59
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0xd0]
push edx
add ecx, 0x280
call fcn.004d4a00
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49eded
mov eax, dword [esi]
mov ecx, dword [0x5b0fc0]
jmp 0x49ede7
cmp eax, 3
jne 0x49edb7
add edi, 6
push edi
call fcn.004ce440
add esp, 4
cmp eax, 1
jne 0x49eda5
lea edx, [esp + 0x10]
push edx
push edi
call fcn.004ce180
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x49eded
mov eax, dword [esi]
mov ecx, dword [0x5b0fc4]
jmp 0x49ede7
mov edx, dword [esp + 0x28]
mov eax, dword [0x5b15cc]
mov ebp, dword [esp + 0x24]
lea ebx, [edx + eax]
jmp 0x49ee2c
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x14]
mov edi, eax
push edi
call fcn.00478c70
add esp, 4
add eax, edi
lea ecx, [esp + 0x10]
push eax
call fcn.00528088
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49eded
mov eax, dword [esi]
mov ecx, dword [0x5b0f6c]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x30]
push esi
call fcn.0049fe70
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov edx, dword [0x5b15cc]
lea ebx, [edi + edx]
inc ebp
cmp ebp, 4
mov dword [esp + 0x24], ebp
jle 0x49eb17
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edi, ebx
test eax, eax
je 0x49ee52
lea eax, [esp + 0x4c]
jmp 0x49ee5e
test ebp, ebp
lea eax, [esp + 0x54]
je 0x49ee5e
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00530619
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_PaintRgn]
mov dword [esp + 0x1c], vtable.CGdiObject.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 0xc
call fcn.00530fe4
mov eax, dword [esp + 0x68]
inc ebp
cmp ebp, eax
mov byte [esp + 0xd0], 5
mov dword [esp + 0x30], ebp
jl 0x49e972
mov ebx, dword [esp + 0x38]
cmp dword [0x5b1064], 1
jne 0x49eedf
mov edx, dword [esp + 0xe8]
lea ebp, [edi - 1]
push ebp
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00530a69
push ebp
push ebx
mov ecx, esi
call fcn.00530ab5
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x40]
push edx
mov dword [ecx], edi
mov ecx, esi
call fcn.00530619
mov eax, dword [esp + 0x78]
mov ecx, esi
push eax
call fcn.00530619
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0xd
call fcn.00530fe4
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0xd0], 0xe
call fcn.00530fe4
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 0xf
call fcn.00530fe4
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 1
call fcn.00527eff
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 0x10
call fcn.00530fe4
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0xd0], 0x11
call fcn.00530fe4
xor eax, eax
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 0x24
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00530619
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 6
call fcn.00530fe4
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0xd0], 7
call fcn.00530fe4
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 8
call fcn.00530fe4
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 1
call fcn.00527eff
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 9
call fcn.00530fe4
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0xd0], 0xa
call fcn.00530fe4
mov eax, 1
jmp 0x49ef84