Function at 0x10032270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db34b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10114894]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10032618
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 4
mov dword [ebp + 8], ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100322b6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.100070c0
push 0x100e6444
push 0x100e87ac
mov ecx, ebx
call fcn.10031eb0
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x100322fa
lea eax, [ecx - 0x10]
push eax
call fcn.10006bd0
add esp, 4
add eax, 0x10
jmp 0x1003232d
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1003230a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10032316
call fcn.100078b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.1001caa0
mov eax, dword [ebp + 0xc]
mov edx, 0x100e6444
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1003235a
test si, si
je 0x10032356
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1003235a
add ecx, 4
add edx, 4
test si, si
jne 0x10032334
xor esi, esi
jmp 0x1003235f
sbb esi, esi
or esi, 1
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032379
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x10
mov dword [ebp + 0xc], ecx
test esi, esi
jne 0x10032419
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x100323ae
lea eax, [edx - 0x10]
push eax
call fcn.10006bd0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x100323d9
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x100323be
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x100323ca
call fcn.100078b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.1001caa0
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10006990
mov ecx, 0x30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov dword [ebp + 0xc], ecx
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10032419
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x30
mov dword [ebp + 0xc], ecx
mov esi, dword [ebp + 8]
mov ebx, ecx
push esi
call fcn.1003f8b0
add esp, 4
test eax, eax
jne 0x100325d5
push 0x100e6444
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.10030fc0
push dword [0x1011358c]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
or ecx, 1
push eax
mov dword [ebp - 0x10], ecx
call fcn.10030fc0
add esp, 0x18
push dword [eax]
or ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100324be
push 0x100e6444
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10030fc0
push dword [0x10113590]
mov ecx, ebx
mov dword [ebp - 4], 3
push eax
lea eax, [ebp + 8]
or ecx, 4
push eax
mov dword [ebp - 0x10], ecx
call fcn.10030fc0
add esp, 0x18
or ebx, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0xf], 0
test eax, eax
je 0x100324c2
mov byte [ebp + 0xf], 1
test bl, 8
je 0x100324e7
mov edx, dword [ebp + 8]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100324e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 4
je 0x10032513
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032513
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebp - 0x10], ebx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003253a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003255b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
jne 0x100325d5
push 0x100e6444
lea eax, [ebp + 8]
push esi
push eax
call fcn.10030fc0
push dword [0x10113594]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10030fc0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.10006990
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100325b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100325d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x100e87b0
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10030fc0
add esp, 0xc
push eax
mov ecx, 0x10117f34
mov dword [ebp - 4], 6
call fcn.10033090
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10032618
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 esp, ebp
pop ebp
ret 8