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

Disassembly:
push 0x404
mov eax, 0x100858a1
call fcn.10083a29
mov edx, dword [ebp + 8]
xor esi, esi
cmp edx, esi
je 0x10006a9d
mov ecx, dword [0x10385040]
xor eax, eax
cmp ecx, esi
jle 0x10006806
cmp dword [eax*4 + 0x10384320], edx
je 0x1000689c
inc eax
cmp eax, ecx
jl 0x100067f4
push 0x10111f10
lea eax, [ebp - 0x3f8]
push str._sMap__NoMap.JPG
push eax
mov dword [0x1035feb4], 0xfffff600
mov dword [0x1035feb8], 0xa00
mov dword [0x1035febc], 0x10
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
mov eax, dword [0x10360a1c]
cmp eax, esi
je 0x1000686a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x100a7098]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a7094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x10360a1c], 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 0x10006917
push 0x1008c73c
jmp 0x10006a97
mov ecx, dword [eax*4 + 0x10384460]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push edx
mov dword [0x1035feb4], ecx
mov ecx, dword [eax*4 + 0x103845a0]
mov eax, dword [eax*4 + 0x10384820]
mov ebx, 0x10111f10
push ebx
mov dword [0x1035febc], eax
lea eax, [ebp - 0x3f8]
push str._sMap___d.JPG
push eax
mov dword [0x1035feb8], ecx
call edi
lea eax, [ebp - 0x3f8]
push 0x1008c724
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 0x18
cmp eax, esi
jne 0x1000690a
push ebx
lea eax, [ebp - 0x3f8]
push str._sMap__NoMap.JPG
push eax
call edi
jmp 0x1000683b
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
jmp 0x1000683e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006930
push 0x1008c74c
jmp 0x10006a97
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x100a7094], eax
cmp eax, esi
jne 0x1000694c
push 0x1008c75c
jmp 0x10006a97
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
jne 0x10006961
push 0x1008c76c
jmp 0x10006a97
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 0x10006980
push 0x1008c77c
jmp 0x10006a97
push dword [0x100a7094]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100a7098
push 1
push dword [0x100a7094]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10006a92
push 0x10360a1c
push 0x1008ab90
push 1
push edi
push dword [0x100a7098]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
cmp eax, esi
je 0x100069f2
mov eax, dword [0x100a7098]
mov dword [0x10360a1c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a7094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x1008c79c
jmp 0x10006a97
mov eax, dword [0x10360a1c]
cmp eax, esi
jne 0x10006a19
mov eax, dword [0x100a7098]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x100a7094]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x1008c7ac
jmp 0x10006a97
mov ecx, dword [eax]
push 0x100a6ec4
push eax
call dword [ecx + 0x18]
mov eax, dword [0x10360a1c]
mov ecx, dword [eax]
push 0x100a6e5c
push eax
call dword [ecx + 0x1c]
push 0x103c8b30
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_341]
mov dword [ebp - 4], esi
mov ecx, dword [0x100a6e5c]
mov eax, dword [0x10360a1c]
mov edx, dword [eax]
push esi
mov edi, ecx
neg edi
push edi
push dword [0x100a6ec4]
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 [0x1035fefc], eax
call dword [sym.imp.mfc100.dll_Ordinal_917]
jmp 0x10006a9d
push 0x1008c78c
call fcn.100060db
pop ecx
call fcn.10083aac
ret