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

Disassembly:
push 0xffffffffffffffff
push 0x545760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x596a0c]
push ebx
push ebp
push esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xe0], 0
call fcn.00518bc5
lea ecx, [esp + 0x18]
lea edx, [esp + 0xd0]
push ecx
lea eax, [esp + 0xd8]
push edx
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0xac]
push ecx
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0xcc]
push eax
mov eax, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [esp + 0x124]
push eax
mov eax, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x124]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x12c]
mov byte [esp + 0x114], 1
call fcn.004cc7c0
mov ebp, dword [esp + 0xf0]
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0xb8]
lea esi, [eax + ebp]
mov eax, dword [esp + 0x11c]
mov ecx, ebp
add edx, ebx
test eax, eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], esi
je 0x49b9bd
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x118]
test eax, eax
je 0x49ba39
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x48], edx
push ecx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
cmp eax, 1
jne 0x49ba39
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0
call fcn.00518bf8
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00519976
jmp 0x49c164
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xac]
add ebx, 2
xor esi, esi
lea ebp, [edx + ebp + 1]
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0xf0], ebx
test eax, eax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x94], ebx
jle 0x49bb36
mov ecx, dword [0x599ea0]
lea eax, [ecx + 1]
imul eax, esi
add eax, ebp
mov dword [esp + 0x98], eax
add eax, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + esi*4]
mov dword [esp + 0x28], 0
imul ecx, dword [0x599e9c]
add ecx, ebx
mov dword [esp + 0x24], vtable.CRgn.0
mov dword [esp + 0x9c], ecx
lea edx, [esp + 0x94]
mov byte [esp + 0xe4], 2
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x28]
call fcn.005228a5
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49baf7
xor ecx, ecx
jmp 0x49bafa
mov ecx, dword [edi + 4]
push 4
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 3
call fcn.005228fc
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov byte [esp + 0xe4], 1
jl 0x49ba79
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xf8]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
push edx
mov ecx, esi
call fcn.004a6c20
test eax, eax
je 0x49bcc4
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x49bc45
mov ecx, dword [0x599ea0]
mov edx, dword [0x599e9c]
lea eax, [ecx + ebp]
lea ecx, [edx + ebx]
push eax
push ecx
push ebp
lea eax, [esp + 0xa0]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CRgn.0
lea ecx, [esp + 0x94]
mov byte [esp + 0xe4], 4
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x28]
call fcn.005228a5
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49bbd0
xor ecx, ecx
jmp 0x49bbd3
mov ecx, dword [edi + 4]
mov edx, dword [edi + 4]
push 4
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [0x599820]
lea ecx, [esp + 0x3c]
push eax
call fcn.00522962
test eax, eax
je 0x49bbf7
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xec]
push eax
lea ecx, [esp + 0x98]
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 5
call fcn.005228fc
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.005228fc
jmp 0x49c13b
mov esi, dword [esp + 0xec]
mov eax, dword [0x59981c]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x599820]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jle 0x49c13b
jmp 0x49bc7d
mov ebp, dword [esp + 0xf4]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x20]
mov esi, dword [ecx + edi*4]
mov ecx, dword [esp + 0xec]
push esi
push eax
mov edx, dword [ecx]
push ebp
push ebx
call dword [edx + 0x5c]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x599ea0]
mov eax, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x20], edx
inc edi
lea edx, [ecx + ebp + 1]
cmp edi, eax
mov dword [esp + 0xf4], edx
jl 0x49bc76
jmp 0x49c13b
lea ecx, [esp + 0x6c]
call fcn.00518bc5
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00518bc5
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00518bc5
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00518bc5
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
test eax, eax
jle 0x49bd51
neg eax
push eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
call fcn.00518b9e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00518b9e
mov eax, dword [esp + 0x4c]
push 0x26
push eax
lea ecx, [esp + 0x4c]
call fcn.00518b9e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x80]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x74]
add edx, eax
push ecx
push edx
mov ecx, esi
call fcn.0049c330
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0xf8]
mov edx, dword [esi + 0x74]
mov ebp, ecx
cmp edx, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], 0
jne 0x49bfc9
mov eax, dword [esi + 0x7c]
mov esi, dword [esi + 0x80]
cmp eax, esi
je 0x49bfc9
jge 0x49bdb0
mov dword [esp + 0x10], eax
mov ebx, esi
jmp 0x49bdb6
mov dword [esp + 0x10], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x49bfc9
test ecx, ecx
mov dword [esp + 0x3c], 1
jle 0x49bde7
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.00518b9e
dec esi
jne 0x49bdd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
jns 0x49bdfb
mov dword [esp + 0x10], 0
sub ebx, eax
xor esi, esi
test ebp, ebp
jle 0x49bfc9
mov dword [esp + 0x14], 0xfffffff8
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov edi, dword [edx + esi*4]
add edi, eax
cmp eax, ecx
jl 0x49bee4
cmp eax, ebx
jge 0x49bfb1
cmp edi, ebx
jg 0x49be59
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + esi*4], 0xd
jmp 0x49bfb1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, esi
inc esi
add edx, 4
inc ecx
push 1
mov dword [esp + 0x1c], ecx
push ebx
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], edx
call fcn.00518c25
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.00518c25
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp*4]
push eax
push esi
call fcn.00518c25
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.00518c25
mov ecx, dword [esp + 0x24]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x84]
mov dword [ecx + ebp*4], eax
mov edx, dword [esp + 0x48]
mov dword [edx + ebp*4], 0xc
mov eax, dword [esp + 0x5c]
mov dword [eax + ebp*4], 0xd
jmp 0x49bfb1
cmp edi, ecx
jle 0x49bfb1
sub ecx, eax
cmp edi, ebx
mov dword [edx + esi*4], ecx
mov ebp, edi
jl 0x49bef9
mov ebp, ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc esi
add edx, 4
inc ecx
push 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], edx
call fcn.00518c25
mov ecx, dword [esp + 0x10]
push 1
sub ebp, ecx
lea ecx, [esp + 0x84]
push ebp
push esi
call fcn.00518c25
push 1
push 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.00518c25
push 1
push 0xd
push esi
lea ecx, [esp + 0x64]
call fcn.00518c25
cmp edi, ebx
jle 0x49bfb1
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc esi
add ebp, 4
push 1
inc eax
push ebx
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
call fcn.00518c25
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.00518c25
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.00518c25
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.00518c25
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, ebp
mov dword [esp + 0x14], ecx
jl 0x49be0f
mov edi, dword [esp + 0xec]
mov ecx, dword [0x5997f0]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], esi
jle 0x49c0f4
mov ebp, dword [esp + 0x14]
jmp 0x49bffd
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0xec]
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x5997ec]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49c031
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x5997ec]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
mov edi, dword [ecx + esi*4]
xor ecx, ecx
add edi, ebx
mov ebx, dword [edx + esi*4]
mov esi, dword [esp + 0x38]
mov eax, edi
test esi, esi
jle 0x49c06f
mov edx, dword [esp + 0xac]
mov ebp, dword [edx]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jl 0x49c06f
sub eax, ebp
inc ecx
add edx, 4
cmp ecx, esi
jl 0x49c05b
lea esi, [eax + ebx]
cmp esi, ebp
jl 0x49c078
mov esi, ebp
mov ebp, dword [esp + 0x20]
sub esi, eax
add ebp, edi
push esi
push ebp
mov ebp, dword [0x599ea0]
imul eax, dword [0x599e9c]
inc ebp
mov edx, dword [esp + 0xf4]
imul ebp, ecx
mov ecx, dword [esp + 0xfc]
mov edx, dword [edx]
add ebp, ecx
mov ecx, dword [esp + 0xf8]
add eax, ecx
mov ecx, dword [esp + 0xf4]
push ebp
push eax
call dword [edx + 0x5c]
sub ebx, esi
test ebx, ebx
jle 0x49c0e1
mov ecx, dword [esp + 0x1c]
sub esi, ecx
mov ecx, dword [esp + 0x70]
add esi, edi
mov eax, esi
mov esi, dword [esp + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x84]
mov dword [edx + esi*4], ebx
jmp 0x49c0ea
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x18]
jl 0x49bff2
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00518bf8
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00518bf8
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00518bf8
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 1
call fcn.00518bf8
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe4], 0
call fcn.00518bf8
lea ecx, [esp + 0x34]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00519976
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 0x38