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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484e50
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, ecx
mov al, byte [ebx + 0x540]
test al, al
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], ecx
jne 0x45d3d4
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004321c0
jmp 0x45d989
cmp dword [ebx + 0x380], 0
je 0x45d989
mov edx, dword [ebx + 0x45c]
mov edi, edx
and edi, 4
je 0x45d43b
cmp dword [ebx + 0x198], 0
jne 0x45d412
cmp dword [ebx + 0x1a0], 0
jne 0x45d412
cmp dword [ebx + 0x19c], 0
jne 0x45d412
cmp dword [ebx + 0x1a4], 0
je 0x45d43b
mov ecx, dword [ebx + 0x19c]
mov eax, dword [ebx + 0x1a0]
mov esi, dword [ebx + 0x198]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x1a4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x45d4eb
test dl, 2
je 0x45d482
cmp dword [ebx + 0x188], 0
jne 0x45d464
cmp dword [ebx + 0x190], 0
jne 0x45d464
cmp dword [ebx + 0x18c], 0
jne 0x45d464
cmp dword [ebx + 0x194], 0
je 0x45d482
mov eax, dword [ebx + 0x18c]
mov esi, dword [ebx + 0x188]
mov ecx, dword [ebx + 0x190]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x194]
jmp 0x45d4e3
test dl, 0x10
je 0x45d498
lea ecx, [ebx + 0x178]
mov eax, ecx
call fcn.00438470
test al, al
je 0x45d4ae
test dl, 8
je 0x45d4c7
lea ecx, [ebx + 0x168]
mov eax, ecx
call fcn.00438470
test al, al
jne 0x45d4c7
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x45d4eb
mov eax, dword [ebx + 0x15c]
mov esi, dword [ebx + 0x158]
mov ecx, dword [ebx + 0x160]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp edi, ecx
je 0x45d4fb
mov eax, dword [ebx + 0x14c]
cmp eax, ecx
jne 0x45d52e
test dl, 2
je 0x45d50a
mov eax, dword [ebx + 0x148]
cmp eax, ecx
jne 0x45d52e
test dl, 0x10
je 0x45d519
mov eax, dword [ebx + 0x144]
cmp eax, ecx
jne 0x45d52e
test dl, 8
je 0x45d528
mov eax, dword [ebx + 0x140]
cmp eax, ecx
jne 0x45d52e
mov eax, dword [ebx + 0x13c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ecx
mov word [esp + 0xa8], cx
cmp edi, ecx
mov dword [esp + 0xd0], ecx
je 0x45d56b
cmp dword [ebx + 0xa8], ecx
je 0x45d56b
push 0xffffffffffffffff
push ecx
lea ecx, [ebx + 0x94]
push ecx
jmp 0x45d5aa
test dl, 2
je 0x45d57d
cmp dword [ebx + 0x8c], ecx
je 0x45d57d
lea edx, [ebx + 0x78]
jmp 0x45d5a6
test dl, 0x10
je 0x45d590
cmp dword [ebx + 0x70], ecx
je 0x45d590
push 0xffffffffffffffff
push ecx
lea eax, [ebx + 0x5c]
push eax
jmp 0x45d5aa
test dl, 8
je 0x45d5a3
cmp dword [ebx + 0x54], ecx
je 0x45d5a3
push 0xffffffffffffffff
push ecx
lea ecx, [ebx + 0x40]
push ecx
jmp 0x45d5aa
lea edx, [ebx + 0x24]
push 0xffffffffffffffff
push ecx
push edx
lea eax, [esp + 0xb0]
call fcn.00401e00
mov edi, dword [ebx + 0x3f4]
mov eax, dword [ebx + 0x3fc]
add edi, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x3f8]
mov edx, dword [ebx + 0x3f0]
sub ecx, dword [esp + 0x20]
add edx, esi
xor esi, esi
sub ecx, edx
sub eax, edi
mov dword [esp + 0x94], edx
mov edx, eax
xor eax, eax
mov dword [esp + 0x98], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xdc], 1
call fcn.00438570
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x88]
movzx eax, dl
mov ecx, edx
mov dword [esp + 0x44], eax
movzx edx, dh
shl eax, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
cmp edi, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], eax
je 0x45d6af
mov esi, dword [esp + 0x68]
imul esi, dword [esp + 0x64]
add esi, esi
add esi, esi
call fcn.00439960
mov ecx, dword [esp + 0x54]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esp + 0xbc], 8
mov ecx, dword [esp + 0xa8]
jae 0x45d6e9
lea ecx, [esp + 0xa8]
mov edx, dword [ebx + 0x448]
mov esi, dword [esp + 0x54]
push edx
call fcn.00419980
mov eax, dword [eax]
push eax
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
call esi
cmp dword [ebx + 0x384], 8
mov edi, eax
jb 0x45d718
mov eax, dword [ebx + 0x370]
jmp 0x45d71e
lea eax, [ebx + 0x370]
mov ecx, dword [ebx + 0x310]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x54]
push edi
push ecx
call esi
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x45d74f
xor esi, esi
jmp 0x45d75c
mov esi, dword [esp + 0x68]
imul esi, dword [esp + 0x64]
add esi, esi
add esi, esi
mov edi, eax
call fcn.004397c0
test eax, eax
push edi
je 0x45d76f
call fcn.004398a0
jmp 0x45d776
mov eax, esi
call fcn.00439910
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x8c]
add esp, 4
test eax, eax
mov dword [esp + 0x3c], edi
jle 0x45d918
fld qword [0x494010]
xor esi, esi
lea ecx, [edi*4]
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x3c], 0
jle 0x45d8fd
lea eax, [edx + 1]
mov ebx, edx
mov edi, edx
sub ebx, eax
sub edi, eax
lea ecx, [eax + esi]
mov eax, dword [esp + 0x3c]
add ebx, 2
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x40]
movzx ebx, byte [ebx + ecx]
xor eax, eax
mov ah, byte [edi + ecx]
mov al, byte [ecx]
shl eax, 8
or eax, ebx
mov ebx, dword [esp + 0x38]
cmp ebx, eax
je 0x45d8e4
cmp byte [edx + esi + 3], 0
je 0x45d8e4
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x45d814
fadd dword [0x494060]
test ebx, ebx
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
jge 0x45d826
fadd dword [0x494060]
fdivp st(1)
mov ebx, dword [esp + 0x40]
fstp dword [esp + 0x10]
fild dword [esp + 0x44]
fld dword [esp + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fld st(0)
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x14], eax
fxch st(1)
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [edi + ecx], al
fldcw word [esp + 0x10]
fild dword [esp + 0x48]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [ecx], al
fldcw word [esp + 0x10]
fild dword [esp + 0x4c]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [ebx + ecx], al
fldcw word [esp + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [edx + esi + 3], al
fldcw word [esp + 0x10]
add esi, 4
add ecx, 4
sub dword [esp + 0x28], 1
jne 0x45d7d7
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
add esi, ecx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x34], esi
jne 0x45d7af
mov eax, dword [esp + 0x24]
fstp st(0)
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov word [esp + 0x11], cx
mov byte [esp + 0x13], cl
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 1
mov byte [esp + 0x12], 0xff
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x9c]
push eax
push edi
push 0
push 0
push edx
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
lea esi, [esp + 0x54]
call fcn.004384d0
cmp dword [esp + 0xbc], 8
jb 0x45d989
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00468cbd
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00468c2b
mov esp, ebp
pop ebp
ret 8