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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
and edi, 0x800fffff
mov dword [eax], 0
lea eax, [edi + ecx]
cmp eax, 0x100000
jle 0x100030f4
neg edi
and edi, 0xfffff
jmp 0x100030f6
mov edi, ecx
test ecx, ecx
je 0x1000342c
lea ebx, [esi + 4]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x1000312c
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x1000312c
pause
push edx
mov ecx, esi
call fcn.10024690
jmp 0x1000312f
lock inc dword [ebx]
cmp dword [esi + 0x30], 0
je 0x1000313c
mov ecx, esi
call fcn.10024f20
inc dword [esi + 0x34]
lock dec dword [ebx]
cmp dword [ebx], 0
jne 0x1000314b
xor eax, eax
xchg dword [esi], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x3c]
mov byte [ebp - 1], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
and eax, 0x7ff00000
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10], 0
call fcn.100039d0
cmp eax, 0xffffffff
jne 0x10003309
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x100031b7
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x100031b7
pause
push edx
mov ecx, esi
call fcn.10024690
jmp 0x100031ba
lock inc dword [ebx]
add dword [esi + 0x34], 0xffffffff
jne 0x100031ce
cmp dword [esi + 0x30], 0
je 0x100031ce
lea ecx, [esi + 0x20]
call fcn.100247b0
lock dec dword [ebx]
cmp dword [ebx], 0
jne 0x100031da
xor eax, eax
xchg dword [esi], eax
mov ecx, esi
call fcn.10024700
lea eax, [ebp - 0x24]
mov byte [ebp - 1], 1
push eax
lea ecx, [esi + 0x3c]
call fcn.100039d0
cmp eax, 0xffffffff
jne 0x10003309
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x1c], 0
cmp eax, dword [esi + 0x74]
jl 0x1000325c
or ebx, 0xffffffff
xor ecx, ecx
or edx, ebx
test eax, eax
jle 0x10003238
lea eax, [esi + 0x17c]
lea ecx, [ecx]
cmp dword [eax], edx
jae 0x1000322f
mov edx, dword [eax]
mov ebx, dword [eax - 0x100]
mov dword [ebp - 8], ecx
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x78]
jl 0x10003220
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ecx + 0x18], 0
inc dword [esi + 0x284]
cmp dword [ebp - 0x1c], 0
jne 0x10003279
jmp 0x10003263
mov dword [ebp - 8], eax
inc eax
mov dword [esi + 0x78], eax
call fcn.10023250
push 0x100000
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0x10]
push 0
push dword [ebp - 0x20]
push dword [ebx + 4]
call fcn.10036499
push dword [ebx + 4]
push 0x100000
push 1
push dword [ebp - 0x1c]
call fcn.100360a2
add esp, 0x1c
test eax, eax
jne 0x100032be
push str.fread___failed_n
push 0x2e4
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_vpklibpackedstore.cpp
call fcn.100236d0
add esp, 0xc
test al, al
jne 0x100032be
int3
push 0
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.10036499
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x18], 0
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.100017a0
mov dword [esi + ebx*4 + 0x7c], eax
call fcn.1001c880
lea ecx, [ebx + 0x5f]
lea ecx, [esi + ecx*4]
xchg dword [ecx], eax
inc dword [esi + 0x288]
jmp 0x1000336c
mov edx, dword [esi + 0x68]
lea ebx, [eax + eax*4]
shl ebx, 3
add edx, ebx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1000334c
inc dword [esi + 0x28c]
add dword [esi + 0x290], edi
xor bl, bl
jmp 0x1000339c
add dword [esi + 0x27c], edi
inc dword [esi + 0x280]
call fcn.1001c880
mov ecx, dword [esi + 0x68]
mov ecx, dword [ebx + ecx + 0x20]
add ecx, 0x5f
lea ecx, [esi + ecx*4]
xchg dword [ecx], eax
mov edx, dword [ebp - 0x1c]
xor bl, bl
test edx, edx
je 0x1000339c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
add ecx, dword [ebp - 0x18]
add eax, edi
cmp ecx, eax
jl 0x1000339c
sub edx, dword [ebp - 0x20]
add edx, dword [ebp + 0x14]
push edi
push edx
push dword [ebp + 8]
call fcn.100337b0
add esp, 0xc
mov dword [ebp - 0xc], edi
mov bl, 1
cmp byte [ebp - 1], 0
je 0x100033ab
mov ecx, esi
call fcn.10024e30
jmp 0x100033f8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
cmp edx, dword [esi]
je 0x100033cf
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x100033cf
pause
push edx
mov ecx, esi
call fcn.10024690
jmp 0x100033d5
lea eax, [esi + 4]
lock inc dword [eax]
add dword [esi + 0x34], 0xffffffff
jne 0x100033e9
cmp dword [esi + 0x30], 0
je 0x100033e9
lea ecx, [esi + 0x20]
call fcn.100247b0
lea eax, [esi + 4]
lock dec dword [eax]
cmp dword [eax], 0
jne 0x100033f8
xor eax, eax
xchg dword [esi], eax
test bl, bl
je 0x10003437
mov edx, dword [ebp + 0x1c]
lea ebx, [esi + 4]
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 - 0xc]
add dword [edx], ecx
cmp eax, 0x100000
mov ecx, 0x100000
mov dword [ebp + 0x18], eax
cmovg edi, ecx
test eax, eax
jne 0x10003101
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18