Function at 0x10030220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c589f
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x1010739c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x100], ebx
push eax
mov dword [ebp - 0xec], 0
call fcn.10004130
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe8]
push 0xc0
push 0
push eax
mov dword [ebp - 0xec], 1
call fcn.1008f970
add esp, 0xc
lea ecx, [ebp - 0xe8]
push 1
call fcn.1002be60
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100302be
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10030759
cmp dword [esi + 0x14], 8
jb 0x100302d5
mov esi, dword [esi]
cmp dword [ebp - 0x84], 0
jne 0x100304db
push 0x40
push 3
push esi
call fcn.10046d0d
add esp, 0xc
test eax, eax
je 0x100304db
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x84], eax
mov eax, dword [0x1010cca4]
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc0], ecx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov eax, dword [0x1010cca8]
mov byte [ebp - 0x88], 1
mov byte [ebp - 0x92], 0
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xf8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xec], 3
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 0x100303fe
mov dword [ebp - 0x98], 0
jmp 0x10030488
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov eax, 3
mov dword [ebp - 0xec], eax
and eax, 0xfffffffd
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xf8]
test ecx, ecx
je 0x100304bb
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x100304bb
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x100304fe
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
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 - 0x84], 0
je 0x1003079c
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1002a510
mov eax, dword [ebp - 0xe8]
add esp, 8
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xdc], 6
je 0x10030570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100055d0
jmp 0x10030759
cmp dword [edi + 0x14], 8
jb 0x10030578
mov edi, dword [edi]
call fcn.1000b1c0
mov ecx, eax
test ecx, ecx
je 0x100307c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf4]
push edi
call fcn.1000b000
test al, al
jne 0x100305d2
test edi, edi
jne 0x100305b1
xor ecx, ecx
jmp 0x100305c5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100305b6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xf4]
call fcn.1000be60
mov byte [ebp - 4], 5
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call fcn.1000b1c0
mov ecx, eax
test ecx, ecx
je 0x100307d3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
push esi
call fcn.1000b000
test al, al
jne 0x1003063c
test esi, esi
jne 0x1003061a
xor ecx, ecx
jmp 0x1003062f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030620
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xf0]
call fcn.1000be60
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.100530d0
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030670
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10009130
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0xf8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100306ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100306ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100306ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x10030707
cmp dword [ebp - 0x14], 8
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10009130
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10030745
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003073b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100307dd
push edx
push ecx
call fcn.10050f3a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x84], 0
je 0x1003079c
lea ecx, [ebp - 0xd0]
call fcn.10035a10
test eax, eax
jne 0x1003079c
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
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 byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.1002ca30
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100512b9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000afe0
push 0x80004005
call fcn.1000afe0
call fcn.10092f59
int3