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

Disassembly:
push 0xffffffffffffffff
push 0x5568e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x5ada84]
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.005270ca
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.004d1660
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 0x4a03ad
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 0x4a0429
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 0x4a0429
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0
call fcn.005270fd
lea ecx, [esp + 0x30]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0052801f
jmp 0x4a0b54
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 0x4a0526
mov ecx, dword [0x5b15d0]
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 [0x5b15cc]
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.005310ad
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x4a04e7
xor ecx, ecx
jmp 0x4a04ea
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.00531104
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov byte [esp + 0xe4], 1
jl 0x4a0469
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.004ab610
test eax, eax
je 0x4a06b4
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4a0635
mov ecx, dword [0x5b15d0]
mov edx, dword [0x5b15cc]
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.005310ad
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x4a05c0
xor ecx, ecx
jmp 0x4a05c3
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 [0x5b0f50]
lea ecx, [esp + 0x3c]
push eax
call fcn.0053116a
test eax, eax
je 0x4a05e7
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.00531104
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.00531104
jmp 0x4a0b2b
mov esi, dword [esp + 0xec]
mov eax, dword [0x5b0f4c]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x5b0f50]
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 0x4a0b2b
jmp 0x4a066d
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 [0x5b15d0]
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 0x4a0666
jmp 0x4a0b2b
lea ecx, [esp + 0x6c]
call fcn.005270ca
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.005270ca
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.005270ca
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.005270ca
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
test eax, eax
jle 0x4a0741
neg eax
push eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
call fcn.005270a3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.005270a3
mov eax, dword [esp + 0x4c]
push 0x26
push eax
lea ecx, [esp + 0x4c]
call fcn.005270a3
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.004a0d20
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 0x4a09b9
mov eax, dword [esi + 0x7c]
mov esi, dword [esi + 0x80]
cmp eax, esi
je 0x4a09b9
jge 0x4a07a0
mov dword [esp + 0x10], eax
mov ebx, esi
jmp 0x4a07a6
mov dword [esp + 0x10], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x4a09b9
test ecx, ecx
mov dword [esp + 0x3c], 1
jle 0x4a07d7
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.005270a3
dec esi
jne 0x4a07c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
jns 0x4a07eb
mov dword [esp + 0x10], 0
sub ebx, eax
xor esi, esi
test ebp, ebp
jle 0x4a09b9
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 0x4a08d4
cmp eax, ebx
jge 0x4a09a1
cmp edi, ebx
jg 0x4a0849
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + esi*4], 0xd
jmp 0x4a09a1
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.0052712a
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.0052712a
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp*4]
push eax
push esi
call fcn.0052712a
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.0052712a
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 0x4a09a1
cmp edi, ecx
jle 0x4a09a1
sub ecx, eax
cmp edi, ebx
mov dword [edx + esi*4], ecx
mov ebp, edi
jl 0x4a08e9
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.0052712a
mov ecx, dword [esp + 0x10]
push 1
sub ebp, ecx
lea ecx, [esp + 0x84]
push ebp
push esi
call fcn.0052712a
push 1
push 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.0052712a
push 1
push 0xd
push esi
lea ecx, [esp + 0x64]
call fcn.0052712a
cmp edi, ebx
jle 0x4a09a1
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.0052712a
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x8c]
call fcn.0052712a
mov edx, dword [esp + 0x48]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.0052712a
mov ecx, dword [esp + 0x5c]
push 1
mov edx, dword [ecx + ebp]
lea ecx, [esp + 0x5c]
push edx
push esi
call fcn.0052712a
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, ebp
mov dword [esp + 0x14], ecx
jl 0x4a07ff
mov edi, dword [esp + 0xec]
mov ecx, dword [0x5b0f20]
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 0x4a0ae4
mov ebp, dword [esp + 0x14]
jmp 0x4a09ed
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 + 0x5b0f1c]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a0a21
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx*4 + 0x5b0f1c]
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 0x4a0a5f
mov edx, dword [esp + 0xac]
mov ebp, dword [edx]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jl 0x4a0a5f
sub eax, ebp
inc ecx
add edx, 4
cmp ecx, esi
jl 0x4a0a4b
lea esi, [eax + ebx]
cmp esi, ebp
jl 0x4a0a68
mov esi, ebp
mov ebp, dword [esp + 0x20]
sub esi, eax
add ebp, edi
push esi
push ebp
mov ebp, dword [0x5b15d0]
imul eax, dword [0x5b15cc]
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 0x4a0ad1
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 0x4a0ada
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x18]
jl 0x4a09e2
lea ecx, [esp + 0x58]
mov byte [esp + 0xe4], 9
call fcn.005270fd
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 8
call fcn.005270fd
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 7
call fcn.005270fd
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 1
call fcn.005270fd
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe4], 0
call fcn.005270fd
lea ecx, [esp + 0x34]
mov dword [esp + 0xe4], 0xffffffff
call fcn.0052801f
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 0x38