Function at 0x10033860
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100827eb
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c4], ecx
lea eax, [ebp - 0x2bc]
push eax
call fcn.10031dc0
push dword [ebp - 0x2bc]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10033f4c
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x2bc]
mov dword [ebp - 0x2b8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10033f4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jle 0x10033927
lea esi, [ebx + 8]
push esi
call fcn.1001a71b
push esi
mov esi, eax
mov dword [ebp - 0x2b8], eax
push 0
push esi
call fcn.100456c0
add esp, 0x10
lea eax, [ebp - 0x308]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10033f4c
test ebx, ebx
jle 0x10033f4c
push esi
call fcn.1002c840
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10033f43
mov dword [ebp - 0x30c], ebx
push ebx
mov byte [ebp - 4], 1
call fcn.1002c760
add esp, 4
mov dword [ebp - 0x2d0], eax
xor edi, edi
test eax, eax
jle 0x10033f3a
push edi
push ebx
call fcn.1002c740
mov esi, eax
add esp, 8
test esi, esi
je 0x10033f27
push 0x10086a34
lea ecx, [ebp - 0x40]
call fcn.1001bfe8
push str.m_strLocalPath
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1001bfe8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x100339cb
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 5
call fcn.10008b60
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
cmp eax, ecx
je 0x10033a06
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.10006680
lea ecx, [ebp - 0x28]
call fcn.10006680
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.10006680
push dword [ebp - 0x2b4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10033f05
lea ecx, [ebp - 0x304]
call fcn.1003a5b0
push 0x10086a34
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.1001bfe8
push str.m_strPicID
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xe
jb 0x10033a88
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0xf
call fcn.10008b60
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
cmp eax, ecx
je 0x10033ac3
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x70]
call fcn.1001bfe8
push str.m_strPicUrl
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
call fcn.1001bfe8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x17
jb 0x10033b2b
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x18
call fcn.10008b60
mov eax, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2a4]
cmp eax, ecx
je 0x10033b66
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0xa0]
call fcn.10006680
lea ecx, [ebp - 0x88]
call fcn.10006680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1d
call fcn.10006680
mov eax, dword [ebp - 0x2b0]
cmp dword [eax - 0xc], 0
jl 0x10033c3b
push str.http:__
push eax
call fcn.10047741
add esp, 8
test eax, eax
je 0x10033c3b
mov ecx, dword [ebp - 0x2b0]
sub eax, ecx
sar eax, 1
jne 0x10033c3b
mov eax, dword [ebp - 0x2ac]
cmp dword [eax - 0xc], 0
jl 0x10033bef
push str.http:__
push eax
call fcn.10047741
add esp, 8
test eax, eax
je 0x10033be9
sub eax, dword [ebp - 0x2ac]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10033c3b
mov ecx, dword [ebp - 0x2b0]
add ecx, 0xfffffff0
push ecx
call fcn.1000cfc0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x2b0]
call fcn.1001f5f0
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.1001f5f0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x1d
call fcn.10006d40
mov eax, dword [ebp - 0x2c4]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0x304]
call fcn.1003ab20
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x304]
call fcn.1003aba0
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x304]
call fcn.1003ace0
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x304]
call fcn.1003ab50
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push str.m_strCID
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1f
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x21
jb 0x10033cce
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x22
call fcn.1003aad0
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
cmp eax, ecx
je 0x10033d09
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push str.m_strTag
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x23
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x25
jb 0x10033d68
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x26
call fcn.1003ac90
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
cmp eax, ecx
je 0x10033da3
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push str.m_strSid
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x27
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x29
jb 0x10033e02
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
push dword [eax]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x2a
call fcn.1003ac40
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
cmp eax, ecx
je 0x10033e3d
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.10006680
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.10036e80
push dword [eax]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x2b
call fcn.1003aa80
push dword [ebp - 0x2c8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0x1d
call esi
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.10036e80
push dword [eax]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x2c
call fcn.1003abf0
push dword [ebp - 0x2cc]
mov byte [ebp - 4], 0x1d
call esi
push 1
lea ecx, [ebp - 0x304]
call fcn.1003ab30
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x304]
push eax
add ecx, 0x98
call fcn.100360d0
lea ecx, [ebp - 0x2ac]
call fcn.10006d40
lea ecx, [ebp - 0x2b0]
call fcn.10006d40
lea ecx, [ebp - 0x304]
call fcn.1003a670
mov edx, dword [ebp - 0x2b4]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10033f27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebp - 0x2d0]
jl 0x10033974
mov esi, dword [ebp - 0x2b8]
push ebx
call fcn.1002c6d0
add esp, 4
push esi
call fcn.1001a724
add esp, 4
mov edx, dword [ebp - 0x2bc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10033f71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a767
mov esp, ebp
pop ebp
ret