Function at 0x10030ee0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcfa9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100f6458]
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x54], ebx
push eax
mov dword [ebp - 0x4c], 0
call fcn.10003de0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x4c], 1
jb 0x10030f48
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100311b5
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.1002f490
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 0xfde9
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10031970
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
jne 0x10030fac
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10005200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005180
jmp 0x100311b5
cmp dword [esi + 0x14], 8
jb 0x10030fb4
mov esi, dword [esi]
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x100311d3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
push esi
call fcn.10006e80
test al, al
jne 0x10031009
test esi, esi
jne 0x10030fe7
xor ecx, ecx
jmp 0x10030fff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030ff0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.10009800
mov byte [ebp - 4], 4
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x100311dd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
push esi
call fcn.10006e80
test al, al
jne 0x10031069
test esi, esi
jne 0x1003104b
xor ecx, ecx
jmp 0x1003105f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031050
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.10009800
mov byte [ebp - 4], 6
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100675f0
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031090
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000c5b0
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x50]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100310ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100310e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10031104
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x1003111e
cmp dword [ebp - 0x14], 8
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000c5b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1003115c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031152
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100311e7
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100311a3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031199
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100311ec
push edx
push ecx
call fcn.10065f62
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
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.100662e1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006e60
push 0x80004005
call fcn.10006e60
call fcn.1008c70a
call fcn.1008c70a
int3