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

Disassembly:
push 0xffffffffffffffff
push 0x53ff80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x58f614]
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.005135f0
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.004c9e30
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 0x49906d
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 0x4990e9
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 0x4990e9
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0
call fcn.00513623
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00514336
jmp 0x499814
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 0x4991e6
mov ecx, dword [0x5922d0]
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 [0x5922cc]
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.0051d265
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x4991a7
xor ecx, ecx
jmp 0x4991aa
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.0051d2bc
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov byte [esp + 0xe4], 1
jl 0x499129
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.004a42c0
test eax, eax
je 0x499374
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4992f5
mov ecx, dword [0x5922d0]
mov edx, dword [0x5922cc]
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.0051d265
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x499280
xor ecx, ecx
jmp 0x499283
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 [0x591c50]
lea ecx, [esp + 0x3c]
push eax
call fcn.0051d322
test eax, eax
je 0x4992a7
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.0051d2bc
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.0051d2bc
jmp 0x4997eb
mov esi, dword [esp + 0xec]
mov eax, dword [0x591c4c]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x591c50]
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 0x4997eb
jmp 0x49932d
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 [0x5922d0]
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 0x499326
jmp 0x4997eb
lea ecx, [esp + 0x6c]
call fcn.005135f0
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.005135f0
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.005135f0
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.005135f0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
test eax, eax
jle 0x499401
neg eax
push eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
call fcn.00513650
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00513650
mov eax, dword [esp + 0x4c]
push 0x26
push eax
lea ecx, [esp + 0x4c]
call fcn.00513650
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.004999e0
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 0x499679
mov eax, dword [esi + 0x7c]
mov esi, dword [esi + 0x80]
cmp eax, esi
je 0x499679
jge 0x499460
mov dword [esp + 0x10], eax
mov ebx, esi
jmp 0x499466
mov dword [esp + 0x10], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x499679
test ecx, ecx
mov dword [esp + 0x3c], 1
jle 0x499497
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.00513650
dec esi
jne 0x499480
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
jns 0x4994ab
mov dword [esp + 0x10], 0
sub ebx, eax
xor esi, esi
test ebp, ebp
jle 0x499679
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 0x499594
cmp eax, ebx
jge 0x499661
cmp edi, ebx
jg 0x499509
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + esi*4], 0xd
jmp 0x499661
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.0051355e
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.0051355e
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp*4]
push eax
push esi
call fcn.0051355e
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.0051355e
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 0x499661
cmp edi, ecx
jle 0x499661
sub ecx, eax
cmp edi, ebx
mov dword [edx + esi*4], ecx
mov ebp, edi
jl 0x4995a9
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.0051355e
mov ecx, dword [esp + 0x10]
push 1
sub ebp, ecx
lea ecx, [esp + 0x84]
push ebp
push esi
call fcn.0051355e
push 1
push 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.0051355e
push 1
push 0xd
push esi
lea ecx, [esp + 0x64]
call fcn.0051355e
cmp edi, ebx
jle 0x499661
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.0051355e
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.0051355e
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.0051355e
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.0051355e
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, ebp
mov dword [esp + 0x14], ecx
jl 0x4994bf
mov edi, dword [esp + 0xec]
mov ecx, dword [0x591c20]
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 0x4997a4
mov ebp, dword [esp + 0x14]
jmp 0x4996ad
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 + 0x591c1c]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4996e1
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x591c1c]
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 0x49971f
mov edx, dword [esp + 0xac]
mov ebp, dword [edx]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jl 0x49971f
sub eax, ebp
inc ecx
add edx, 4
cmp ecx, esi
jl 0x49970b
lea esi, [eax + ebx]
cmp esi, ebp
jl 0x499728
mov esi, ebp
mov ebp, dword [esp + 0x20]
sub esi, eax
add ebp, edi
push esi
push ebp
mov ebp, dword [0x5922d0]
imul eax, dword [0x5922cc]
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 0x499791
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 0x49979a
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x18]
jl 0x4996a2
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.00513623
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.00513623
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.00513623
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 1
call fcn.00513623
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe4], 0
call fcn.00513623
lea ecx, [esp + 0x34]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00514336
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 0x38