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

Disassembly:
push 0x404
mov eax, 0x1008484b
call fcn.1008296f
mov edx, dword [ebp + 8]
xor esi, esi
cmp edx, esi
je 0x10006abd
mov ecx, dword [0x10383fb8]
xor eax, eax
cmp ecx, esi
jle 0x10006826
cmp dword [eax*4 + 0x10383298], edx
je 0x100068bc
inc eax
cmp eax, ecx
jl 0x10006814
push 0x10110f10
lea eax, [ebp - 0x3f8]
push str._sMap__NoMap.JPG
push eax
mov dword [0x1035eeb4], 0xfffff600
mov dword [0x1035eeb8], 0xa00
mov dword [0x1035eebc], 0x10
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
mov eax, dword [0x1035f994]
cmp eax, esi
je 0x1000688a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x100a6098]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a6094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x1035f994], esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push closesocket
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006937
push 0x1008b74c
jmp 0x10006ab7
mov ecx, dword [eax*4 + 0x103833d8]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push edx
mov dword [0x1035eeb4], ecx
mov ecx, dword [eax*4 + 0x10383518]
mov eax, dword [eax*4 + 0x10383798]
mov ebx, 0x10110f10
push ebx
mov dword [0x1035eebc], eax
lea eax, [ebp - 0x3f8]
push str._sMap___d.JPG
push eax
mov dword [0x1035eeb8], ecx
call edi
lea eax, [ebp - 0x3f8]
push 0x1008b734
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 0x18
cmp eax, esi
jne 0x1000692a
push ebx
lea eax, [ebp - 0x3f8]
push str._sMap__NoMap.JPG
push eax
call edi
jmp 0x1000685b
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
jmp 0x1000685e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006950
push 0x1008b75c
jmp 0x10006ab7
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x100a6094], eax
cmp eax, esi
jne 0x1000696c
push 0x1008b76c
jmp 0x10006ab7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
jne 0x10006981
push 0x1008b77c
jmp 0x10006ab7
push esi
lea ecx, [ebp - 0x3fc]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100069a0
push 0x1008b78c
jmp 0x10006ab7
push dword [0x100a6094]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100a6098
push 1
push dword [0x100a6094]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10006ab2
push 0x1035f994
push 0x10089b90
push 1
push edi
push dword [0x100a6098]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
cmp eax, esi
je 0x10006a12
mov eax, dword [0x100a6098]
mov dword [0x1035f994], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a6094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x1008b7ac
jmp 0x10006ab7
mov eax, dword [0x1035f994]
cmp eax, esi
jne 0x10006a39
mov eax, dword [0x100a6098]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a6094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x1008b7bc
jmp 0x10006ab7
mov ecx, dword [eax]
push 0x100a5ec4
push eax
call dword [ecx + 0x18]
mov eax, dword [0x1035f994]
mov ecx, dword [eax]
push 0x100a5e5c
push eax
call dword [ecx + 0x1c]
push 0x103c7aa8
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_341]
mov dword [ebp - 4], esi
mov ecx, dword [0x100a5e5c]
mov eax, dword [0x1035f994]
mov edx, dword [eax]
push esi
mov edi, ecx
neg edi
push edi
push dword [0x100a5ec4]
push ecx
push esi
mov ecx, 0x140
push ecx
push ecx
push 5
push 5
push dword [ebp - 0x40c]
push eax
call dword [edx + 0x20]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x410]
mov dword [0x1035eefc], eax
call dword [sym.imp.mfc100.dll_Ordinal_917]
jmp 0x10006abd
push 0x1008b79c
call fcn.100060fb
pop ecx
call fcn.100829f2
ret