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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x84]
push edi
test eax, eax
je 0x471324
cmp dword [esp + 0x8c], 0
jne 0x470f75
mov dword [ebp], 0
mov dword [eax], 0
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x13]
push eax
mov al, byte [esp + 0x68]
push ecx
call fcn.00471350
add esp, 8
cmp esi, 0x80
jne 0x470f9a
mov esi, 0xe42
jmp 0x470fad
sub esi, 0x180
neg esi
sbb esi, esi
and esi, 0x1e
add esi, 0xdf2
movzx eax, byte [esp + 0x68]
mov dword [esp + 0x14], esi
cmp eax, 5
ja case.0x470fbb.1
jmp dword [eax*4 + 0x47132c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x470fdb
lea esi, [esi + esi*2]
jmp 0x470fdb
add esi, esi
add esi, esi
jmp 0x470fdb
lea esi, [esi + esi*4]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
fmul qword [0x4d2fa8]
fdiv qword [0x4d2f88]
call fcn.004a2110
mov ecx, esi
shl ecx, 4
mov dword [esp + 0x18], eax
sub ecx, esi
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
movzx dx, byte [esp + 0x13]
movzx ecx, dx
xor edx, edx
xor eax, eax
mov dword [esp + 0x34], ebx
cmp dx, cx
jae 0x47108a
movzx ecx, cx
mov dword [esp + 0x14], 0x4e90f8
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
movzx ecx, byte [edx]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*2 + 0x4d0079]
mov esi, 3
jmp 0x471050
movzx edx, ax
mov dword [esp + 0x28], ebx
movzx ebx, byte [ecx - 1]
mov byte [edx + 0x4eb428], bl
movzx ebx, byte [ecx]
inc eax
movzx edx, ax
inc eax
add ecx, 2
sub esi, 1
mov byte [edx + 0x4eb428], bl
mov ebx, dword [esp + 0x28]
jne 0x471050
mov ecx, 1
add dword [esp + 0x14], ecx
sub dword [esp + 0x20], ecx
jne 0x471035
movzx edx, byte [esp + 0x6c]
mov edi, dword [esp + 0x78]
movzx ecx, ax
inc eax
movzx esi, ax
mov eax, dword [esp + 0x18]
lea edx, [edx + eax*2]
imul edx, esi
cmp dword [esp + 0x8c], 0
mov byte [ecx + 0x4eb428], 2
movzx ecx, word [esp + 0x74]
lea eax, [edx + ebx*2]
mov dword [edi], eax
movzx eax, cx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
mov dword [ecx], eax
mov dword [esp + 0x20], 0
jne 0x471182
mov edx, dword [0x4ee77c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp], eax
mov eax, dword [0x4ee77c]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp]
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [edi]
push edx
call fcn.00477c60
mov ecx, dword [esp + 0x60]
add esp, 8
mov dword [ecx], eax
mov edx, dword [ebp]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov edx, dword [edi]
mov eax, dword [ebp]
push 0xff0062
push 0
push 0
push 0
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [0x4ee77c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x84]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebp]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x1c]
movzx edx, bx
xor edi, edi
lea eax, [esi - 1]
cmp eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edi
mov bx, dx
jle 0x471239
mov eax, dword [esp + 0x18]
movzx ecx, ax
movzx edx, ax
movzx ax, byte [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x58], ax
movzx esi, byte [edi + 0x4eb428]
imul esi, dword [esp + 0x2c]
cmp dword [esp + 0x8c], 0
jne 0x471204
mov ecx, dword [esp + 0x28]
movzx eax, bx
lea edx, [eax + esi + 1]
inc ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_FillRect]
movzx ax, byte [edi + 0x4eb429]
imul ax, word [esp + 0x18]
add ax, word [esp + 0x58]
add ax, si
add bx, ax
mov eax, dword [esp + 0x24]
add eax, 2
movzx edi, ax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
dec eax
cmp edi, eax
jl 0x4711ba
mov word [esp + 0x14], bx
mov ecx, dword [esp + 0x1c]
movzx esi, byte [ecx + 0x4eb427]
movzx edx, word [esp + 0x30]
imul esi, edx
cmp dword [esp + 0x8c], 0
jne 0x47128a
mov ecx, dword [esp + 0x28]
movzx eax, bx
lea edx, [eax + esi + 1]
inc ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x34]
add esi, eax
add dword [esp + 0x14], esi
cmp dword [esp + 0x8c], 0
jne 0x471319
mov edx, dword [ebp]
lea ecx, [esp + 0x38]
push ecx
push 1
push 0x4c4518
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
cmp byte [esp + 0x80], 0
mov eax, dword [esp + 0x3c]
movzx esi, word [esp + 0x14]
mov edi, eax
je 0x4712e6
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov edx, dword [ebp]
sub ebx, eax
mov eax, dword [esp + 0x64]
push esi
push eax
push ecx
push edx
call fcn.004745b0
add esp, 0x10
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [ebp]
push eax
mov al, byte [esp + 0x1c]
add al, al
movzx ecx, al
mov eax, dword [esp + 0x78]
push edi
push ecx
mov ecx, dword [esp + 0x7c]
push 0
push esi
push edx
inc eax
push ecx
call fcn.00474420
add esp, 0x1c
movzx edx, word [esp + 0x14]
mov eax, dword [esp + 0x78]
mov dword [eax], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret