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

Disassembly:
sub esp, 0x78
fld dword [esp + 0x7c]
push ebx
push ebp
fld st(0)
push esi
mov esi, ecx
push edi
mov dword [esp + 0x40], esi
call fcn.00505040
fld dword [esp + 0x90]
mov edi, eax
call fcn.00505040
fld dword [esp + 0x94]
fld st(0)
mov ebx, eax
call fcn.00505040
fld dword [esp + 0x98]
mov ebp, eax
call fcn.00505040
mov dword [esp + 0x50], ebx
xor ebx, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
cmp dword [0x56e87c], ebx
je 0x47d9a5
fsubrp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fcomp dword [0x556070]
fnstsw ax
test ah, 0x41
jne 0x47d9a9
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
fld dword [esp + 0x94]
fsub dword [esp + 0x8c]
mov esi, eax
mov dword [esp + 0x2c], esi
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
call fcn.00505040
fld dword [esp + 0x98]
fsub dword [esp + 0x90]
mov edi, eax
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
call fcn.00505040
mov ebp, eax
cmp edi, ebp
mov dword [esp + 0x28], ebp
jge 0x47d601
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, 2
cmp dword [esp + 0x9c], eax
jl 0x47d619
mov dword [esp + 0x9c], eax
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, 1
mov word [esp + 0x74], cx
push ebx
lea ecx, [esp + 0x6c]
push ecx
mov edx, 0x20
push esi
mov dword [esp + 0x74], 0x28
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x82], dx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x48], eax
cmp eax, ebx
je 0x47d994
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xa0]
sar edx, 0x10
movzx ecx, dl
mov dword [esp + 0x44], eax
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov ebx, dword [esp + 0xa4]
imul ecx, ebx
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [esp + 0xa0]
shr ecx, 8
movzx ecx, cl
sar edx, 7
imul ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x14], al
mov eax, 0x80808081
imul ecx
add edx, ecx
movzx ecx, byte [esp + 0xa0]
imul ecx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x15], al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0xa8]
mov byte [esp + 0x16], cl
sar edx, 0x10
movzx ecx, dl
mov byte [esp + 0x17], bl
mov ebx, dword [esp + 0xac]
imul ecx, ebx
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [esp + 0xa8]
shr ecx, 8
movzx ecx, cl
sar edx, 7
imul ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x10], al
mov eax, 0x80808081
imul ecx
add edx, ecx
movzx ecx, byte [esp + 0xa8]
sar edx, 7
imul ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x11], al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x13], bl
xor edx, edx
test ebp, ebp
jle 0x47d7fc
mov dword [esp + 0x1c], ecx
xor eax, eax
test edi, edi
jle 0x47d7ec
mov esi, dword [esp + 0x1c]
nop
test eax, eax
je 0x47d7da
lea ebx, [edi - 1]
cmp eax, ebx
je 0x47d7da
test edx, edx
je 0x47d7da
lea ebx, [ebp - 1]
cmp edx, ebx
mov ebx, dword [esp + 0x14]
jne 0x47d7de
mov ebx, dword [esp + 0x10]
mov dword [esi], ebx
inc eax
add esi, 4
cmp eax, edi
jl 0x47d7c0
mov esi, dword [esp + 0x2c]
lea eax, [edi*4]
add dword [esp + 0x1c], eax
inc edx
cmp edx, ebp
jl 0x47d7b5
mov edx, dword [esp + 0x9c]
test edx, edx
jle 0x47d8c0
mov eax, edi
mov ebx, ebp
neg eax
imul ebx, edi
lea esi, [ebp - 1]
imul esi, edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov edi, edi
xor eax, eax
cmp dword [esp + 0x14], eax
jle 0x47d892
mov ebp, edi
neg ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
lea esi, [eax + ebp]
mov dword [ecx + esi*4], edx
mov esi, ebp
add ebp, dword [esp + 0x18]
sub esi, eax
add esi, edi
mov dword [ecx + esi*4 - 4], edx
mov esi, dword [esp + 0x1c]
add dword [esp + 0x1c], edi
add esi, eax
mov dword [ecx + esi*4], edx
mov esi, ebx
sub esi, eax
inc eax
add ebx, edi
cmp eax, dword [esp + 0x14]
mov dword [ecx + esi*4 - 4], edx
jl 0x47d858
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
inc dword [esp + 0x14]
add dword [esp + 0x20], edi
mov ebp, dword [esp + 0x28]
add ebx, eax
add esi, eax
sub dword [esp + 0x3c], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
jne 0x47d840
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x9c]
mov eax, 1
cmp edx, eax
jle 0x47d943
mov esi, edi
neg esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x9c]
sub ebp, esi
mov ebx, edi
imul ebx, esi
dec edx
lea esi, [ebp + 1]
imul edx, edi
imul esi, edi
imul ebp, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
lea esp, [esp]
lea ebp, [edx + eax]
mov dword [ecx + ebp*4], esi
mov ebp, ebx
sub ebp, eax
mov dword [ecx + ebp*4 - 4], esi
mov ebp, dword [esp + 0x1c]
add dword [esp + 0x1c], edi
add ebp, eax
mov dword [ecx + ebp*4], esi
mov ebp, dword [esp + 0x20]
add dword [esp + 0x20], edi
sub ebp, eax
mov dword [ecx + ebp*4 - 4], esi
mov ebp, dword [esp + 0x24]
inc eax
add edx, ebp
add ebx, ebp
cmp eax, dword [esp + 0x9c]
jl 0x47d900
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0xff
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x44]
push ebp
push edi
push 0
push 0
push esi
push ebp
push edi
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [0x56e87c]
mov edx, dword [esp + 0x44]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x28
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0047d180
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x28