Function at 0x407430
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov eax, dword [esp + 0x40]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push 3
push ebp
push ebp
push connect
mov dword [esp + 0x38], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407476
xor eax, eax
jmp 0x407675
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407493
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407675
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x4074b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407675
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x4074d7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407675
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edi
push eax
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], ebp
push edx
push 1
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x407520
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x407675
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
push 0x444a48
push 1
push edi
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
jl 0x407669
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x28], eax
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004388ef
mov esi, eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0043a2c2
lea ecx, [esp + 0x2c]
call fcn.0043884d
cmp esi, ebp
mov dword [esp + 0x44], ebp
jne 0x4075a5
xor eax, eax
jmp 0x4075a8
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00438904
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [esp + 0x50]
push eax
mov ecx, edi
call fcn.0043913e
cmp edi, ebp
je 0x4075f0
mov edi, dword [edi + 4]
cmp edi, ebp
je 0x4075f0
mov ecx, dword [esp + 0x30]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
push ebp
neg edi
push edi
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x1c]
and eax, ecx
mov ecx, dword [esp + 0x58]
push edi
mov edi, dword [esp + 0x38]
push ebp
mov edx, dword [ecx]
push edi
mov edi, dword [esp + 0x3c]
push edi
push ebp
push ebp
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
jge 0x407648
mov ecx, esi
call fcn.0043896c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00438982
xor eax, eax
jmp 0x407675
lea ecx, [esp + 0x2c]
call fcn.0043896c
mov ecx, esi
call fcn.0043896c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00438982
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8