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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x74
push ebx
push esi
push edi
push eax
lea esi, [esp + 0x38]
call fcn.004a7480
add esp, 4
test al, al
je 0x4a7624
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub ebx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x4a761c
test eax, eax
jg 0x4a762d
mov edx, dword [ebp + 0x14]
cmp edx, 0xffffffff
jne 0x4a7630
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4a764a
cmp dword [edi], 0
mov byte [esp + 0xf], 1
jne 0x4a764f
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], 0
cmp edx, 0xffffffff
je 0x4a7689
push 0x8020
mov ebx, 0x30
push ebx
push ebx
movzx ecx, dx
mov edx, dword [0x676f64]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi], ebx
mov dword [esp + 0x18], eax
mov dword [edi], ebx
mov dword [esp + 0x10], ebx
jmp 0x4a76c9
cmp byte [esp + 0xf], 0
je 0x4a76c5
fild dword [esp + 0x14]
fild dword [esp + 0x28]
fdiv st(1)
fild dword [esp + 0x10]
fild dword [edi]
fdiv st(1)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x4a76af
fstp st(0)
jmp 0x4a76b1
fstp st(2)
fxch st(2)
fmul st(1)
call fcn.00549a90
fmulp st(1)
mov dword [esi], eax
call fcn.00549a90
jmp 0x4a76c7
mov dword [esi], ebx
mov dword [edi], eax
mov ecx, dword [edi]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 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 eax, dword [esi]
neg ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov edx, 1
mov eax, 0x20
push ecx
mov dword [esp + 0x58], 0x28
mov word [esp + 0x64], dx
mov word [esp + 0x66], ax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov esi, eax
push 0
lea eax, [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4a78b0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a7797
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
push 3
push 0
push 0
push edx
mov edx, dword [ecx]
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x4a787c
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push 0
mov edi, eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
push 0x20
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 8]
push 0
push edi
push edx
mov dword [esp + 0x34], eax
call dword [0x677d48]
cmp byte [esp + 0xf], 0
je 0x4a783a
push 4
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0xcc0020
push eax
mov eax, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push edi
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4a785b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push 0xcc0020
push ecx
push edx
push edi
push eax
push ebx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
call dword [sym.imp.GDI32.dll_GdiFlush]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
imul eax, dword [edi]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x4a78b0
mov edx, dword [esp + 0x24]
mov byte [ecx + edx + 3], 0
add ecx, 4
cmp ecx, eax
jl 0x4a78a0
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret