Function at 0x10032370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x1010739c]
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.1008f970
add esp, 0xc
lea ecx, [ebp - 0x308]
push 1
call fcn.1002be60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1008f970
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10032407
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10095a5b
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 0x1003262a
cmp byte [ebp + 0x14], al
je 0x1003262a
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.10031c40
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, eax
push 1
push 0x100d6ffc
call fcn.10008d00
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 0x100324a8
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
cmp ecx, 0x10
jae 0x100324cc
movups xmm0, xmmword [eax]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0xf
movups xmmword [ebp - 0x230], xmm0
jmp 0x1003255d
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 0x10032515
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10050f0a
add esp, 4
test eax, eax
je 0x10032b5c
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x10032528
test ecx, ecx
je 0x10032526
push ecx
call fcn.10050f0a
add esp, 4
mov ecx, eax
jmp 0x10032528
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.1008ee70
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 0x1003259b
mov ecx, dword [ebp - 0x33c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032591
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032b5c
push edx
push ecx
call fcn.10050f3a
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 0x1003260f
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032b61
push edx
push ecx
call fcn.10050f3a
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp dword [esi + 0x14], 8
jb 0x10032632
mov esi, dword [esi]
cmp dword [ebp - 0x2a4], 0
jne 0x1003283a
push 0x40
push 0x12
push esi
call fcn.10046d0d
add esp, 0xc
test eax, eax
je 0x1003283a
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x2a4], eax
mov eax, dword [0x1010cca4]
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 [0x1010cca8]
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.1002b690
mov esi, eax
add esp, 4
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x1003275b
mov dword [ebp - 0x2b8], 0
jmp 0x100327e5
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 0x1003281a
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x1003281a
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 0x1003285d
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.10009250
cmp dword [ebp - 0x2a4], 0
je 0x10032b29
cmp dword [edi + 0x14], 8
jb 0x1003287a
mov edi, dword [edi]
call fcn.1000b1c0
mov ecx, eax
test ecx, ecx
je 0x10032b66
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.1000b000
test al, al
jne 0x100328dc
test edi, edi
jne 0x100328b5
xor ecx, ecx
jmp 0x100328cf
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100328c0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x314]
call fcn.1000be60
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x324]
cmp dword [esi + 0x14], 8
jb 0x100328ee
mov esi, dword [esi]
call fcn.1000b1c0
mov ecx, eax
test ecx, ecx
je 0x10032b70
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.1000b000
test al, al
jne 0x1003294c
test esi, esi
jne 0x10032929
xor ecx, ecx
jmp 0x1003293f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032930
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x310]
call fcn.1000be60
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.10053590
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 0x100329b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.10009130
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 0x100329f0
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 0x10032a11
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 0x10032a30
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.10003510
mov eax, dword [ebp - 0x308]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2fc], 6
je 0x10032a7e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.100055d0
jmp 0x10032ae6
mov byte [ebp - 0x309], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x10032ac9
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032b7a
push edx
push ecx
call fcn.10050f3a
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 0x10032b29
lea ecx, [ebp - 0x2f0]
call fcn.10035a10
test eax, eax
jne 0x10032b29
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.10009250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x308]
call fcn.1002ca30
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.100512b9
mov esp, ebp
pop ebp
ret
call fcn.10092f59
call fcn.10092f59
push 0x80004005
call fcn.1000afe0
push 0x80004005
call fcn.1000afe0
call fcn.10092f59
int3