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

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp + 0x308]
cmp ecx, dword [eax]
push esi
push edi
jl 0x4f2985
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
mov edi, dword [eax + 4]
imul edi, ecx
add edi, dword [eax + 8]
lea eax, [ebp + 0x2cc]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0xc]
push edi
lea eax, [esp + 0x58]
mov dword [esp + 0x60], ecx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x6c], edx
call fcn.004f1770
mov edx, dword [edi + 0x140]
cmp edx, dword [edi + 0x148]
jge 0x4f29df
mov eax, dword [edi + 0x144]
cmp eax, dword [edi + 0x14c]
jl 0x4f2a2b
fild dword [ebp + 0x468]
fmul dword [edi + 0x13c]
fcom dword [0x5e9720]
fnstsw ax
test ah, 5
jp 0x4f2a00
fsub qword [0x5d8c68]
jmp 0x4f2a06
fadd qword [0x5d8c68]
call fcn.005c4484
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ecx, esi
mov edx, ebx
sub ecx, eax
sub edx, eax
add esi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
jmp 0x4f2a5d
mov ecx, dword [edi + 0x140]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [edi + 0x144]
add edx, ebx
mov dword [esp + 0x48], edx
mov esi, dword [edi + 0x148]
add esi, eax
mov dword [esp + 0x4c], esi
mov eax, dword [edi + 0x14c]
add eax, ebx
mov dword [esp + 0x50], eax
mov ebx, dword [edi + 0x154]
test ebx, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x4f2a9c
lea ebx, [esp + 0x1c]
push ebx
lea ebx, [esp + 0x68]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ecx
mov dword [ebx + 4], edx
push edi
mov dword [ebx + 8], esi
push ebp
mov dword [ebx + 0xc], eax
call fcn.004f2700
mov dword [esp + 0x18], eax
jmp 0x4f2aa4
mov dword [esp + 0x18], 0
fld dword [edi + 0x28]
fmul dword [0x5e9648]
call fcn.005c4484
fld dword [edi + 0x24]
fmul dword [0x5e9648]
xor ebx, ebx
mov bh, al
call fcn.005c4484
fld dword [edi + 0x20]
fmul dword [0x5e9648]
mov bl, al
shl ebx, 8
call fcn.005c4484
movzx ecx, al
mov eax, dword [ebp + 0x2ec]
or ebx, ecx
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], 0
je 0x4f2b27
mov edx, dword [esp + 0x7c]
cmp dword [ebp + 0x2fc], edx
jne 0x4f2b1e
mov eax, dword [ebp + 0x478]
test eax, eax
mov dword [esp + 0x24], 1
jne 0x4f2b1e
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x10], eax
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
jmp 0x4f2b40
push 0xc8c8c8
push 4
mov dword [esp + 0x18], 0xc8c8c8
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x134]
push ecx
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x34], eax
cmp dword [edi + 0x10], 3
je 0x4f2ba1
mov edx, dword [esp + 0x7c]
cmp dword [ebp + 0x2fc], edx
jne 0x4f2b92
mov eax, dword [ebp + 0x478]
test eax, eax
je 0x4f2b92
mov eax, dword [edi + 0x138]
push eax
push 0
push 0
jmp 0x4f2bc2
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
jmp 0x4f2bc2
mov eax, dword [esp + 0x7c]
cmp dword [ebp + 0x2fc], eax
jne 0x4f2bb5
mov eax, dword [edi + 0x138]
jmp 0x4f2bbd
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 2
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, eax
push ecx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ebp, bl
movzx ecx, bh
shr ebx, 0x10
mov dword [esp + 0x30], eax
movzx ebx, bl
lea eax, [ebp + 0x48]
test eax, eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x2c], ebx
jge 0x4f2bfc
xor eax, eax
jmp 0x4f2c08
cmp eax, 0xff
jle 0x4f2c08
mov eax, 0xff
lea edx, [ecx + 0x48]
test edx, edx
jge 0x4f2c13
xor edx, edx
jmp 0x4f2c20
cmp edx, 0xff
jle 0x4f2c20
mov edx, 0xff
lea ecx, [ebx + 0x48]
test ecx, ecx
jge 0x4f2c2b
xor ecx, ecx
jmp 0x4f2c38
cmp ecx, 0xff
jle 0x4f2c38
mov ecx, 0xff
xor ebx, ebx
mov bh, cl
mov bl, dl
movzx edx, al
shl ebx, 8
or ebx, edx
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push ebx
push 0
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x7c], eax
lea eax, [ebp - 0x48]
test eax, eax
jge 0x4f2c6b
xor eax, eax
jmp 0x4f2c77
cmp eax, 0xff
jle 0x4f2c77
mov eax, 0xff
mov edx, dword [esp + 0x80]
add edx, 0xffffffb8
jns 0x4f2c87
xor edx, edx
jmp 0x4f2c94
cmp edx, 0xff
jle 0x4f2c94
mov edx, 0xff
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffb8
jns 0x4f2ca1
xor ecx, ecx
jmp 0x4f2cae
cmp ecx, 0xff
jle 0x4f2cae
mov ecx, 0xff
xor ebx, ebx
mov bh, cl
movzx eax, al
mov bl, dl
shl ebx, 8
or ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push ebx
push 0
push 0
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebp, eax
mov eax, dword [edi + 0x10]
cmp eax, 3
mov dword [esp + 0x80], ebp
ja case.default.0x4f2ce7
jmp dword [eax*4 + 0x4f304c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f2d1d
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x2ec]
test ecx, ecx
je 0x4f2d16
mov edx, dword [eax + 0x478]
xor ecx, ecx
test edx, edx
sete cl
inc ecx
mov eax, ecx
jmp 0x4f2d31
mov eax, 4
jmp 0x4f2d31
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x2ec]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [0x622254]
mov ecx, dword [eax + 0xc]
push 2
push esi
push ecx
call dword [eax + 0x58]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f2d73
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004f1b30
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x20]
push 1
push ecx
lea edx, [esp + 0x4c]
push edx
push edi
push esi
call fcn.004f24b0
jmp case.default.0x4f2ce7
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
push 0xf00021
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x5c]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_PatBlt]
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
sub ecx, eax
push 0xf00021
push ecx
mov ecx, dword [esp + 0x4c]
push 1
push eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
push esi
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f2e19
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004f1b30
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x4c]
push edx
push edi
push esi
call fcn.004f24b0
jmp case.default.0x4f2ce7
mov ebp, dword [esp + 0x24]
test ebp, ebp
mov ebx, dword [esp + 0x78]
je 0x4f2e5e
mov eax, dword [ebx + 0x2ec]
test eax, eax
je 0x4f2e57
mov edx, dword [ebx + 0x478]
xor eax, eax
test edx, edx
sete al
inc eax
jmp 0x4f2e72
mov eax, 4
jmp 0x4f2e72
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x2ec]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
push 0
lea ecx, [esp + 0x48]
push ecx
push eax
mov eax, dword [0x622254]
mov edx, dword [eax + 0x3c]
push 2
push esi
push edx
call dword [eax + 0x58]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0xa
jl 0x4f2f20
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
cmp ecx, 0xa
jl 0x4f2f20
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov eax, 3
add edx, eax
sub ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x50]
add edx, eax
sub ecx, eax
test ebp, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
je 0x4f2ef9
mov eax, dword [ebx + 0x2ec]
test eax, eax
je 0x4f2ef2
mov edx, dword [ebx + 0x478]
xor eax, eax
test edx, edx
sete al
inc eax
jmp 0x4f2f09
mov eax, 4
jmp 0x4f2f09
mov eax, dword [ebx + 0x2ec]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
push 0
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [0x622254]
mov ecx, dword [eax + 0x3c]
push 9
push esi
push ecx
call dword [eax + 0x58]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f2f4f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
push esi
call fcn.004f1b30
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4f2fd3
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
mov ebp, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push esi
mov ebx, eax
call ebp
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
push esi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f2fd3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
push esi
call fcn.004f1b30
mov edx, dword [esp + 0x20]
push 1
push edx
lea eax, [esp + 0x4c]
push eax
push edi
push esi
call fcn.004f24b0
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call edi
mov edx, dword [esp + 0x34]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x38]
push eax
push esi
call edi
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x7c]
push edx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret 0x10