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

Disassembly:
mov eax, 0x4ec0
call fcn.00505a10
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x4ebc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4ecc]
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp eax, 2
je 0x481ea6
cmp eax, 1
jne 0x482347
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
lea esi, [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
call fcn.004aa990
mov dword [esp + 0x10], eax
test eax, eax
jne 0x481ee1
fld dword [0x56eac4]
jmp 0x481ef5
fild dword [esp + 0x10]
fadd dword [0x56eac4]
fld dword [0x56b608]
fadd st(0), st(0)
faddp st(1)
call fcn.00505040
add dword [esp + 0x2c], eax
test byte [ebp + 0x10], 1
push 6
je 0x481f60
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov esi, dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x30], edx
call esi
mov eax, dword [ebp + 0x18]
push 0xe
lea edx, [esp + 0x30]
push edx
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call esi
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xe
jmp 0x481f82
mov eax, dword [ebp + 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call esi
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 8
call esi
mov edx, dword [ebp + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [ebp + 8]
test esi, esi
jl 0x481fc5
mov eax, dword [edi + 0x68]
sub eax, dword [edi + 0x64]
sar eax, 3
cmp esi, eax
jge 0x481fc5
mov ecx, dword [edi + 0x68]
sub ecx, dword [edi + 0x64]
sar ecx, 3
cmp esi, ecx
jb 0x481fb5
call fcn.00501daa
mov eax, dword [edi + 0x64]
mov edx, dword [eax + esi*8 + 4]
mov ebx, dword [eax + esi*8]
mov dword [esp + 0x40], edx
jmp 0x481fd1
or eax, 0xffffffff
mov ebx, 0x5379d8
mov dword [esp + 0x40], eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481fd6
mov ecx, dword [esp + 0x30]
fld dword [0x56b604]
sub eax, edx
mov edx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.00505040
fld dword [0x56b600]
neg eax
push eax
call fcn.00505040
neg eax
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
movzx eax, byte [edi + 0x74]
test al, al
je 0x48207e
push 0
push eax
push esi
mov eax, ebx
lea esi, [esp + 0xac]
call fcn.0047ce90
mov eax, dword [esp + 0x4ec4]
mov ecx, dword [esp + 0x4ec0]
push 0x8920
lea edx, [esp + 0x54]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x4ec0]
mov ecx, esi
cmp eax, ecx
je 0x482094
push eax
call fcn.005026cd
add esp, 4
jmp 0x482094
mov eax, dword [ebp + 0x18]
push 0x8920
lea edx, [esp + 0x54]
push edx
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
test byte [ebp + 0x10], 1
je 0x4820a9
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
call fcn.004aa870
mov esi, eax
mov dword [esp + 0x3c], esi
test esi, esi
je 0x482347
cmp dword [edi + 0x14], 0
jne 0x4820e0
push 0x40
call fcn.00501e17
add esp, 4
test eax, eax
je 0x4820f5
call fcn.0047cf20
jmp 0x4820f7
push 0x44
call fcn.00501e17
add esp, 4
test eax, eax
je 0x4820f5
call fcn.0047ec80
jmp 0x4820f7
xor eax, eax
mov ebx, eax
xor edx, edx
cmp ebx, edx
je 0x482347
cmp dword [edi + 0x14], edx
jne 0x4821c9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push eax
push ecx
mov ecx, ebx
call edx
fld dword [0x56b608]
fadd dword [0x56eac4]
call fcn.00505040
mov edi, eax
mov eax, dword [ebp + 0x28]
add edi, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
call fcn.004aa990
fild dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
add eax, edi
sub ecx, dword [esi + 0x1c]
fstp dword [esp + 0x3c]
fild dword [ebp + 0x20]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x40]
fild dword [esp + 0x14]
fstp dword [esp + 0x44]
fild dword [esp + 0x18]
fstp dword [esp + 0x48]
jne 0x482179
call fcn.00501daa
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x44]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [ebp + 0x18]
push 0
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
jmp 0x482347
fldz
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], edx
fst dword [esp + 0x6c]
mov dword [esp + 0x78], edx
fstp dword [esp + 0x70]
mov ecx, 3
mov dword [esp + 0x68], ecx
lea edx, [esp + 0x10]
push edx
mov eax, 0x57
mov dword [esp + 0x68], eax
mov eax, dword [0x56e898]
lea edx, [esp + 0x88]
mov ecx, 7
lea esi, [esp + 0x64]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
jl 0x48233d
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
mov edx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xe4]
call eax
test eax, eax
jl 0x48233d
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push eax
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc0]
push eax
call edx
fld dword [0x56b608]
fadd dword [0x56eac4]
call fcn.00505040
mov esi, eax
mov eax, dword [ebp + 0x28]
add esi, dword [ebp + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.004aa990
fild dword [esp + 0x18]
add eax, esi
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x20]
fstp dword [esp + 0x1c]
sub ecx, dword [esi + 0x1c]
fild dword [ebp + 0x20]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fstp dword [esp + 0x24]
fild dword [esp + 0x4c]
fstp dword [esp + 0x28]
jne 0x4822dd
call fcn.00501daa
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc4]
push 0
push 0
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x482347
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x4ecc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501b9a
add esp, 0x4ec0
ret 4