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

Disassembly:
push 0xffffffffffffffff
push 0x545810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x596a5c]
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.00518c55
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.004cc850
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 0x49ba0d
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 0x49ba89
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 0x49ba89
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0
call fcn.00518c88
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00519a06
jmp 0x49c1b4
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 0x49bb86
mov ecx, dword [0x599ef0]
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 [0x599eec]
add ecx, ebx
mov dword [esp + 0x24], 0x55406c
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.00522935
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49bb47
xor ecx, ecx
jmp 0x49bb4a
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], 0x55405c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 3
call fcn.0052298c
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov byte [esp + 0xe4], 1
jl 0x49bac9
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.004a6c60
test eax, eax
je 0x49bd14
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x49bc95
mov ecx, dword [0x599ef0]
mov edx, dword [0x599eec]
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], 0x55406c
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.00522935
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49bc20
xor ecx, ecx
jmp 0x49bc23
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 [0x599870]
lea ecx, [esp + 0x3c]
push eax
call fcn.005229f2
test eax, eax
je 0x49bc47
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, 0x55405c
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 5
call fcn.0052298c
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.0052298c
jmp 0x49c18b
mov esi, dword [esp + 0xec]
mov eax, dword [0x59986c]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x599870]
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 0x49c18b
jmp 0x49bccd
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 [0x599ef0]
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 0x49bcc6
jmp 0x49c18b
lea ecx, [esp + 0x6c]
call fcn.00518c55
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00518c55
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00518c55
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00518c55
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
test eax, eax
jle 0x49bda1
neg eax
push eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
call fcn.00518c2e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00518c2e
mov eax, dword [esp + 0x4c]
push 0x26
push eax
lea ecx, [esp + 0x4c]
call fcn.00518c2e
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.0049c380
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 0x49c019
mov eax, dword [esi + 0x7c]
mov esi, dword [esi + 0x80]
cmp eax, esi
je 0x49c019
jge 0x49be00
mov dword [esp + 0x10], eax
mov ebx, esi
jmp 0x49be06
mov dword [esp + 0x10], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x49c019
test ecx, ecx
mov dword [esp + 0x3c], 1
jle 0x49be37
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.00518c2e
dec esi
jne 0x49be20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
jns 0x49be4b
mov dword [esp + 0x10], 0
sub ebx, eax
xor esi, esi
test ebp, ebp
jle 0x49c019
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 0x49bf34
cmp eax, ebx
jge 0x49c001
cmp edi, ebx
jg 0x49bea9
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + esi*4], 0xd
jmp 0x49c001
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.00518cb5
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.00518cb5
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp*4]
push eax
push esi
call fcn.00518cb5
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.00518cb5
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 0x49c001
cmp edi, ecx
jle 0x49c001
sub ecx, eax
cmp edi, ebx
mov dword [edx + esi*4], ecx
mov ebp, edi
jl 0x49bf49
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.00518cb5
mov ecx, dword [esp + 0x10]
push 1
sub ebp, ecx
lea ecx, [esp + 0x84]
push ebp
push esi
call fcn.00518cb5
push 1
push 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.00518cb5
push 1
push 0xd
push esi
lea ecx, [esp + 0x64]
call fcn.00518cb5
cmp edi, ebx
jle 0x49c001
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.00518cb5
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.00518cb5
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.00518cb5
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.00518cb5
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, ebp
mov dword [esp + 0x14], ecx
jl 0x49be5f
mov edi, dword [esp + 0xec]
mov ecx, dword [0x599840]
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 0x49c144
mov ebp, dword [esp + 0x14]
jmp 0x49c04d
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 + 0x59983c]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49c081
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x59983c]
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 0x49c0bf
mov edx, dword [esp + 0xac]
mov ebp, dword [edx]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jl 0x49c0bf
sub eax, ebp
inc ecx
add edx, 4
cmp ecx, esi
jl 0x49c0ab
lea esi, [eax + ebx]
cmp esi, ebp
jl 0x49c0c8
mov esi, ebp
mov ebp, dword [esp + 0x20]
sub esi, eax
add ebp, edi
push esi
push ebp
mov ebp, dword [0x599ef0]
imul eax, dword [0x599eec]
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 0x49c131
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 0x49c13a
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x18]
jl 0x49c042
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00518c88
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00518c88
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00518c88
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 1
call fcn.00518c88
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe4], 0
call fcn.00518c88
lea ecx, [esp + 0x34]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00519a06
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 0x38