Function at 0x10032030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf176
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x100fe39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0xc0
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x308]
push 0
push eax
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x309], 0
call fcn.10087da0
add esp, 0xc
lea ecx, [ebp - 0x308]
push 1
call fcn.1002bb60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.10087da0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100320c7
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1008e16e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100322ea
cmp byte [ebp + 0x14], al
je 0x100322ea
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.10031900
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, eax
push 1
push 0x100cef90
call fcn.10008b40
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x314], eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x310], ecx
jb 0x10032168
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
cmp ecx, 0x10
jae 0x1003218c
movups xmm0, xmmword [eax]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0xf
movups xmmword [ebp - 0x230], xmm0
jmp 0x1003221d
mov eax, ecx
mov ecx, 0x7fffffff
or eax, 0xf
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x31c], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x100321d5
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1004f16d
add esp, 4
test eax, eax
je 0x1003281c
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x100321e8
test ecx, ecx
je 0x100321e6
push ecx
call fcn.1004f16d
add esp, 4
mov ecx, eax
jmp 0x100321e8
xor ecx, ecx
mov eax, dword [ebp - 0x310]
inc eax
mov dword [ebp - 0x230], ecx
push eax
push dword [ebp - 0x314]
push ecx
call fcn.100872a0
mov eax, dword [ebp - 0x310]
add esp, 0xc
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x328]
cmp edx, 0x10
jb 0x1003225b
mov ecx, dword [ebp - 0x33c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003281c
push edx
push ecx
call fcn.1004f19d
add esp, 8
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov dword [ebp - 0x32c], 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x328], 0xf
mov byte [ebp - 0x33c], 0
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x100322cf
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100322c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032821
push edx
push ecx
call fcn.1004f19d
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp dword [esi + 0x14], 8
jb 0x100322f2
mov esi, dword [esi]
cmp dword [ebp - 0x2a4], 0
jne 0x100324fa
push 0x40
push 0x12
push esi
call fcn.100466a4
add esp, 0xc
test eax, eax
je 0x100324fa
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x2a4], eax
mov eax, dword [0x10103834]
mov dword [ebp - 0x2e4], ecx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2e0], ecx
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2d4], ecx
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], ecx
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2c4], ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b0], eax
mov eax, dword [0x10103838]
mov byte [ebp - 0x2a8], 1
mov byte [ebp - 0x2b2], 0
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b8], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x31c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x320]
mov dword [ebp - 0x318], 2
push eax
call fcn.1002b390
mov esi, eax
add esp, 4
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x1003241b
mov dword [ebp - 0x2b8], 0
jmp 0x100324a5
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2cc], 0
mov eax, 2
mov dword [ebp - 0x318], eax
and eax, 0xfffffffd
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x31c]
test ecx, ecx
je 0x100324da
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x100324da
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x308]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x1003251d
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x308]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.10009090
cmp dword [ebp - 0x2a4], 0
je 0x100327e9
cmp dword [edi + 0x14], 8
jb 0x1003253a
mov edi, dword [edi]
call fcn.1000b000
mov ecx, eax
test ecx, ecx
je 0x10032826
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x314], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x314]
push edi
call fcn.1000ae40
test al, al
jne 0x1003259c
test edi, edi
jne 0x10032575
xor ecx, ecx
jmp 0x1003258f
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032580
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x314]
call fcn.1000bca0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x324]
cmp dword [esi + 0x14], 8
jb 0x100325ae
mov esi, dword [esi]
call fcn.1000b000
mov ecx, eax
test ecx, ecx
je 0x10032830
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x310]
push esi
call fcn.1000ae40
test al, al
jne 0x1003260c
test esi, esi
jne 0x100325e9
xor ecx, ecx
jmp 0x100325ff
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100325f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x310]
call fcn.1000bca0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.10051800
add esp, 0xc
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea esi, [ecx + 2]
mov word [ebp - 0x248], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032670
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.10008f70
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edx, dword [ebp - 0x31c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100326b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0x310]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100326d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x314]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100326f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.10003370
mov eax, dword [ebp - 0x308]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2fc], 6
je 0x1003273e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.10005430
jmp 0x100327a6
mov byte [ebp - 0x309], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x10032789
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003277f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003283a
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp dword [ebp - 0x2a4], 0
je 0x100327e9
lea ecx, [ebp - 0x2f0]
call fcn.10035700
test eax, eax
jne 0x100327e9
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x308]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.10009090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x308]
call fcn.1002c710
mov al, byte [ebp - 0x309]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f51c
mov esp, ebp
pop ebp
ret
call fcn.1008b33c
call fcn.1008b33c
push 0x80004005
call fcn.1000ae20
push 0x80004005
call fcn.1000ae20
call fcn.1008b33c
int3