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

Disassembly:
push 0xffffffffffffffff
push 0x5453a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x59697c]
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.00518875
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.004cc430
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 0x49b62d
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 0x49b6a9
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 0x49b6a9
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0
call fcn.005188a8
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00519616
jmp 0x49bdd4
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 0x49b7a6
mov ecx, dword [0x599e08]
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 [0x599e04]
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.00522545
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49b767
xor ecx, ecx
jmp 0x49b76a
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.0052259c
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov byte [esp + 0xe4], 1
jl 0x49b6e9
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.004a6890
test eax, eax
je 0x49b934
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x49b8b5
mov ecx, dword [0x599e08]
mov edx, dword [0x599e04]
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.00522545
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49b840
xor ecx, ecx
jmp 0x49b843
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 [0x599788]
lea ecx, [esp + 0x3c]
push eax
call fcn.00522602
test eax, eax
je 0x49b867
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.0052259c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.0052259c
jmp 0x49bdab
mov esi, dword [esp + 0xec]
mov eax, dword [0x599784]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x599788]
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 0x49bdab
jmp 0x49b8ed
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 [0x599e08]
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 0x49b8e6
jmp 0x49bdab
lea ecx, [esp + 0x6c]
call fcn.00518875
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00518875
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00518875
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00518875
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
test eax, eax
jle 0x49b9c1
neg eax
push eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
call fcn.005188d5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.005188d5
mov eax, dword [esp + 0x4c]
push 0x26
push eax
lea ecx, [esp + 0x4c]
call fcn.005188d5
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.0049bfa0
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 0x49bc39
mov eax, dword [esi + 0x7c]
mov esi, dword [esi + 0x80]
cmp eax, esi
je 0x49bc39
jge 0x49ba20
mov dword [esp + 0x10], eax
mov ebx, esi
jmp 0x49ba26
mov dword [esp + 0x10], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x49bc39
test ecx, ecx
mov dword [esp + 0x3c], 1
jle 0x49ba57
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.005188d5
dec esi
jne 0x49ba40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
jns 0x49ba6b
mov dword [esp + 0x10], 0
sub ebx, eax
xor esi, esi
test ebp, ebp
jle 0x49bc39
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 0x49bb54
cmp eax, ebx
jge 0x49bc21
cmp edi, ebx
jg 0x49bac9
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + esi*4], 0xd
jmp 0x49bc21
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.005188fc
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.005188fc
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp*4]
push eax
push esi
call fcn.005188fc
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.005188fc
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 0x49bc21
cmp edi, ecx
jle 0x49bc21
sub ecx, eax
cmp edi, ebx
mov dword [edx + esi*4], ecx
mov ebp, edi
jl 0x49bb69
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.005188fc
mov ecx, dword [esp + 0x10]
push 1
sub ebp, ecx
lea ecx, [esp + 0x84]
push ebp
push esi
call fcn.005188fc
push 1
push 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.005188fc
push 1
push 0xd
push esi
lea ecx, [esp + 0x64]
call fcn.005188fc
cmp edi, ebx
jle 0x49bc21
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.005188fc
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.005188fc
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.005188fc
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.005188fc
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, ebp
mov dword [esp + 0x14], ecx
jl 0x49ba7f
mov edi, dword [esp + 0xec]
mov ecx, dword [0x599758]
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 0x49bd64
mov ebp, dword [esp + 0x14]
jmp 0x49bc6d
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 + 0x599754]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49bca1
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x599754]
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 0x49bcdf
mov edx, dword [esp + 0xac]
mov ebp, dword [edx]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jl 0x49bcdf
sub eax, ebp
inc ecx
add edx, 4
cmp ecx, esi
jl 0x49bccb
lea esi, [eax + ebx]
cmp esi, ebp
jl 0x49bce8
mov esi, ebp
mov ebp, dword [esp + 0x20]
sub esi, eax
add ebp, edi
push esi
push ebp
mov ebp, dword [0x599e08]
imul eax, dword [0x599e04]
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 0x49bd51
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 0x49bd5a
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x18]
jl 0x49bc62
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.005188a8
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.005188a8
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.005188a8
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 1
call fcn.005188a8
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe4], 0
call fcn.005188a8
lea ecx, [esp + 0x34]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00519616
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 0x38