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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481c20
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, ecx
mov al, byte [ebx + 0x3f8]
test al, al
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], ecx
jne 0x4592d4
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00437240
jmp 0x459889
cmp dword [ebx + 0x2ec], 0
je 0x459889
mov edx, dword [ebx + 0x3b4]
mov edi, edx
and edi, 4
je 0x45933b
cmp dword [ebx + 0x10c], 0
jne 0x459312
cmp dword [ebx + 0x114], 0
jne 0x459312
cmp dword [ebx + 0x110], 0
jne 0x459312
cmp dword [ebx + 0x118], 0
je 0x45933b
mov ecx, dword [ebx + 0x110]
mov eax, dword [ebx + 0x114]
mov esi, dword [ebx + 0x10c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x4593eb
test dl, 2
je 0x459382
cmp dword [ebx + 0xfc], 0
jne 0x459364
cmp dword [ebx + 0x104], 0
jne 0x459364
cmp dword [ebx + 0x100], 0
jne 0x459364
cmp dword [ebx + 0x108], 0
je 0x459382
mov eax, dword [ebx + 0x100]
mov esi, dword [ebx + 0xfc]
mov ecx, dword [ebx + 0x104]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x108]
jmp 0x4593e3
test dl, 0x10
je 0x459398
lea ecx, [ebx + 0xec]
mov eax, ecx
call fcn.0045ed00
test al, al
je 0x4593ae
test dl, 8
je 0x4593c7
lea ecx, [ebx + 0xdc]
mov eax, ecx
call fcn.0045ed00
test al, al
jne 0x4593c7
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 0x4593eb
mov eax, dword [ebx + 0xd0]
mov esi, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0xd4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp edi, ecx
je 0x4593fb
mov eax, dword [ebx + 0xc0]
cmp eax, ecx
jne 0x45942e
test dl, 2
je 0x45940a
mov eax, dword [ebx + 0xbc]
cmp eax, ecx
jne 0x45942e
test dl, 0x10
je 0x459419
mov eax, dword [ebx + 0xb8]
cmp eax, ecx
jne 0x45942e
test dl, 8
je 0x459428
mov eax, dword [ebx + 0xb4]
cmp eax, ecx
jne 0x45942e
mov eax, dword [ebx + 0xb0]
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 0x45946b
cmp dword [ebx + 0xa8], ecx
je 0x45946b
push 0xffffffffffffffff
push ecx
lea ecx, [ebx + 0x94]
push ecx
jmp 0x4594aa
test dl, 2
je 0x45947d
cmp dword [ebx + 0x8c], ecx
je 0x45947d
lea edx, [ebx + 0x78]
jmp 0x4594a6
test dl, 0x10
je 0x459490
cmp dword [ebx + 0x70], ecx
je 0x459490
push 0xffffffffffffffff
push ecx
lea eax, [ebx + 0x5c]
push eax
jmp 0x4594aa
test dl, 8
je 0x4594a3
cmp dword [ebx + 0x54], ecx
je 0x4594a3
push 0xffffffffffffffff
push ecx
lea ecx, [ebx + 0x40]
push ecx
jmp 0x4594aa
lea edx, [ebx + 0x24]
push 0xffffffffffffffff
push ecx
push edx
lea eax, [esp + 0xb0]
call fcn.00401c40
mov edi, dword [ebx + 0x360]
mov eax, dword [ebx + 0x368]
add edi, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x364]
mov edx, dword [ebx + 0x35c]
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.00464b90
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 0x4595af
mov esi, dword [esp + 0x68]
imul esi, dword [esp + 0x64]
add esi, esi
add esi, esi
call fcn.00464df0
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 eax, dword [esp + 0xa8]
jae 0x4595e9
lea eax, [esp + 0xa8]
mov ecx, dword [ebx + 0x3a4]
mov esi, dword [esp + 0x54]
push eax
call fcn.0043d040
mov ecx, dword [eax]
push ecx
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
call esi
cmp dword [ebx + 0x2f0], 8
mov edi, eax
jb 0x459618
mov eax, dword [ebx + 0x2dc]
jmp 0x45961e
lea eax, [ebx + 0x2dc]
mov edx, dword [ebx + 0x284]
push edx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x54]
push edi
push eax
call esi
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x45964f
xor esi, esi
jmp 0x45965c
mov esi, dword [esp + 0x68]
imul esi, dword [esp + 0x64]
add esi, esi
add esi, esi
mov edi, eax
call fcn.00464c80
test eax, eax
push edi
je 0x45966f
call fcn.00464d30
jmp 0x459676
mov eax, esi
call fcn.00464da0
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 0x459818
fld qword [0x48fb10]
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 0x4597fd
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 0x4597e4
cmp byte [edx + esi + 3], 0
je 0x4597e4
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x459714
fadd dword [0x48fb88]
test ebx, ebx
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
jge 0x459726
fadd dword [0x48fb88]
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 0x4596d7
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
add esi, ecx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x34], esi
jne 0x4596af
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.00464b10
cmp dword [esp + 0xbc], 8
jb 0x459889
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00469d48
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.00469ab5
mov esp, ebp
pop ebp
ret 8