Function at 0x10002ef0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
and edi, 0x800fffff
mov dword [eax], 0
mov dword [ebp - 0x1c], esi
lea eax, [edi + ecx]
cmp eax, 0x100000
jle 0x10002f29
neg edi
and edi, 0xfffff
mov dword [ebp - 0x10], edi
jmp 0x10002f2e
mov edi, ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x10003326
lea eax, [esi + 0x3c]
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov dword [ebp - 0x18], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x10002f6f
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x10002f6f
pause
push edx
mov ecx, esi
call fcn.10025000
jmp 0x10002f75
lea eax, [esi + 4]
lock inc dword [eax]
cmp dword [esi + 0x30], 0
je 0x10002f82
mov ecx, esi
call fcn.10025890
inc dword [esi + 0x34]
lea eax, [esi + 4]
lock dec dword [eax]
cmp dword [eax], 0
jne 0x10002f94
xor eax, eax
xchg dword [esi], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x3c]
mov byte [ebp - 2], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
and eax, 0x7ff00000
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x24], 0
call fcn.100039f0
cmp eax, 0xffffffff
jne 0x100031fa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x10003000
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x10003000
pause
push edx
mov ecx, esi
call fcn.10025000
jmp 0x10003006
lea eax, [esi + 4]
lock inc dword [eax]
add dword [esi + 0x34], 0xffffffff
jne 0x1000301a
cmp dword [esi + 0x30], 0
je 0x1000301a
lea ecx, [esi + 0x20]
call fcn.10025120
lea eax, [esi + 4]
lock dec dword [eax]
cmp dword [eax], 0
jne 0x10003029
xor eax, eax
xchg dword [esi], eax
mov ecx, esi
call fcn.10025070
lea eax, [ebp - 0x38]
mov byte [ebp - 2], 1
push eax
lea ecx, [esi + 0x3c]
call fcn.100039f0
cmp eax, 0xffffffff
jne 0x100031fa
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x30], 0
cmp eax, dword [esi + 0x70]
jl 0x100030af
or edi, 0xffffffff
xor ecx, ecx
or edx, edi
test eax, eax
jle 0x10003088
lea eax, [esi + 0x178]
lea esp, [esp]
cmp dword [eax], edx
jae 0x1000307f
mov edx, dword [eax]
mov edi, dword [eax - 0x100]
mov dword [ebp - 8], ecx
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x74]
jl 0x10003070
mov eax, dword [esi + 0x64]
lea ecx, [edi + edi*4]
lea edi, [esi + 0x3c]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ecx + 0x18], 0
inc dword [esi + 0x280]
cmp dword [ebp - 0x30], 0
jne 0x100030cf
jmp 0x100030b9
mov dword [ebp - 8], eax
lea edi, [esi + 0x3c]
inc eax
mov dword [esi + 0x74], eax
call fcn.10023bc0
push 0x100000
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push 0
push dword [ebp - 0x34]
push dword [eax + 4]
call fcn.100370f9
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push 0x100000
push 1
push dword [ebp - 0x30]
call fcn.10036d02
add esp, 0x1c
test eax, eax
jne 0x10003117
push str.fread___failed_n
push 0x2e4
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_vpklibpackedstore.cpp
call fcn.10024040
add esp, 0xc
test al, al
jne 0x10003117
int3
mov eax, dword [ebp + 0x10]
push 0
push dword [eax + 8]
push dword [eax + 4]
call fcn.100370f9
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x28], eax
or eax, 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0xc], 0
cmp ecx, eax
je 0x1000319c
mov edx, dword [edi + 0x28]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
lea eax, [ecx + ecx*4]
mov dword [ebp - 0x20], ecx
cmp edi, dword [edx + eax*8 + 0x10]
lea edx, [edx + eax*8]
jl 0x1000317d
jg 0x1000316e
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 0x14]
jl 0x1000317d
cmp ecx, 0xffffffff
mov byte [ebp - 0xc], 0
cmove edx, esi
mov ecx, dword [edx + 4]
jmp 0x1000318b
cmp ecx, 0xffffffff
mov byte [ebp - 0xc], 1
mov eax, esi
cmovne eax, edx
mov ecx, dword [eax]
mov edx, dword [esi + 0x28]
cmp ecx, 0xffffffff
jne 0x10003155
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push 0
push dword [ebp - 0xc]
mov ecx, edi
push eax
call fcn.10004b90
mov ecx, dword [esi + 0x64]
mov edi, eax
lea edx, [edi + edi*4]
lea edx, [ecx + edx*8]
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 8]
mov dword [esi + eax*4 + 0x78], edi
call fcn.1001d1f0
mov ecx, dword [ebp - 8]
add ecx, 0x5e
lea ecx, [esi + ecx*4]
xchg dword [ecx], eax
inc dword [esi + 0x284]
mov edi, dword [ebp - 0x10]
jmp 0x10003264
mov edx, dword [esi + 0x64]
lea ecx, [eax + eax*4]
shl ecx, 3
add edx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x30], ecx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
test ecx, ecx
jne 0x10003241
inc dword [esi + 0x288]
add dword [esi + 0x28c], edi
mov byte [ebp - 1], cl
jmp 0x10003294
add dword [esi + 0x278], edi
inc dword [esi + 0x27c]
call fcn.1001d1f0
mov ecx, dword [esi + 0x64]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx + 0x20]
add ecx, 0x5e
lea ecx, [esi + ecx*4]
xchg dword [ecx], eax
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x10003294
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2c]
add eax, edi
cmp ecx, eax
jl 0x10003294
sub edx, dword [ebp - 0x34]
add edx, dword [ebp + 0x14]
push edi
push edx
push dword [ebp + 8]
call fcn.10034410
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 1], 1
cmp byte [ebp - 2], 0
je 0x100032a3
mov ecx, esi
call fcn.100257a0
jmp 0x100032f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x100032c7
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x100032c7
pause
push edx
mov ecx, esi
call fcn.10025000
jmp 0x100032cd
lea eax, [esi + 4]
lock inc dword [eax]
add dword [esi + 0x34], 0xffffffff
jne 0x100032e1
cmp dword [esi + 0x30], 0
je 0x100032e1
lea ecx, [esi + 0x20]
call fcn.10025120
lea eax, [esi + 4]
lock dec dword [eax]
cmp dword [eax], 0
jne 0x100032f0
xor eax, eax
xchg dword [esi], eax
cmp byte [ebp - 1], 0
je 0x10003330
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add dword [ebp + 8], edi
sub eax, edi
add dword [ebp + 0x14], edi
mov edi, eax
mov ecx, dword [ebp - 0x18]
add dword [edx], ecx
cmp eax, 0x100000
mov ecx, 0x100000
mov dword [ebp + 0x18], eax
cmovg edi, ecx
mov dword [ebp - 0x10], edi
test eax, eax
jne 0x10002f40
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x18