Function at 0x10029200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.10031b20
mov ebx, eax
test ebx, ebx
js 0x10029440
cmp word [esi + ebx*2 + 2], 0
lea eax, [esi + ebx*2]
je 0x10029440
push eax
lea ecx, [esp + 0x2c]
call fcn.10028640
push esi
lea ecx, [esp + 0x20]
call fcn.10028640
cmp ebx, dword [esp + 0x20]
jae 0x10029259
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov word [eax + ebx*2], cx
mov ecx, dword [esp + 0x2c]
cmp ecx, 6
jbe 0x1002927a
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffa
mov edx, 0x100d2d68
lea ecx, [eax + ecx*2]
call fcn.10028280
test al, al
jne 0x10029288
push str.:_DATA
lea ecx, [esp + 0x2c]
call fcn.100287f0
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx]
cmp eax, 0x61
jb 0x10029299
cmp eax, 0x7a
jbe 0x100292a3
cmp eax, 0x41
jb 0x100292e5
cmp eax, 0x5a
ja 0x100292e5
cmp word [ecx + 2], 0x3a
jne 0x100292e5
cmp ebx, 2
je 0x100292bb
cmp ebx, 3
jne 0x100292e5
cmp word [ecx + 4], 0x5c
jne 0x100292e5
mov ecx, edi
call fcn.10029110
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
xor edx, edx
mov dword [ecx + 4], 0
mov word [eax], dx
cmp ebx, 2
jne 0x100292f5
lea eax, [esp + 0x1c]
push eax
call fcn.10028780
jmp 0x100292f5
push ecx
mov ecx, edi
call fcn.10029200
test al, al
je 0x10029427
and dword [edi + 0x20], 0xfffffbef
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10028cb0
mov ebx, dword [esp + 0x28]
nop dword [eax + eax]
push 8
call fcn.1007c3b0
xor ecx, ecx
mov dword [esp + 0x2c], eax
add esp, 4
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x40], 0xffffffff
mov word [eax], cx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 3
lea ecx, [esp + 0x40]
push eax
je 0x1002935a
call fcn.10029090
jmp 0x10029363
push dword [esp + 0x48]
call fcn.10028f50
mov esi, dword [esp + 0x28]
test al, al
je 0x100293c2
mov edx, ebx
mov ecx, esi
call fcn.100281e0
test al, al
jne 0x10029383
push esi
call fcn.1007bfd8
add esp, 4
jmp 0x10029320
mov eax, dword [esp + 0x2c]
cmp eax, 7
jbe 0x1002939d
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x1002939d
xor eax, eax
mov dword [esp + 0x2c], ecx
mov word [esi + ecx*2], ax
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0x28]
call fcn.10028860
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
mov byte [esp + 0xf], 1
jmp 0x100293df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
je 0x100293da
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0xf], 0
push esi
call fcn.1007bfd8
add esp, 4
push dword [esp + 0x44]
call fcn.1007bfd8
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, 0xffffffff
je 0x10029404
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
push eax
call fcn.1007bfd8
add esp, 4
push ebx
call fcn.1007bfd8
mov al, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x1c]
push eax
call fcn.1007bfd8
add esp, 4
push dword [esp + 0x28]
call fcn.1007bfd8
add esp, 4
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
call fcn.10028d60
test al, al
jne 0x10029507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x10029483
cmp ebx, 0x35
je 0x10029483
cmp ebx, 0x43
je 0x10029483
cmp ebx, 0x7b
je 0x10029483
cmp ebx, 0xa1
jne 0x10029662
movzx eax, word [esi]
xor edx, edx
mov dword [esp + 0x14], edx
cmp eax, 0x5c
je 0x10029496
cmp eax, 0x2f
jne 0x100294c2
movzx ecx, word [esi + 2]
cmp ecx, 0x5c
je 0x100294a4
cmp ecx, 0x2f
jne 0x100294c2
cmp word [esi + 4], 0x3f
jne 0x100294c2
movzx ecx, word [esi + 6]
cmp ecx, 0x5c
je 0x100294b9
cmp ecx, 0x2f
jne 0x100294c2
mov edx, 4
mov dword [esp + 0x14], edx
cmp eax, 0x5c
je 0x100294cc
cmp eax, 0x2f
jne 0x10029524
cmp word [esi + 2], 0
jne 0x10029524
mov ecx, esi
call fcn.10029160
mov edx, eax
cmp edx, 0xffffffff
je 0x10029662
test dl, 0x10
je 0x10029662
mov ecx, edi
call fcn.10029110
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 0
mov word [eax], cx
mov dword [edi + 0x20], edx
mov bl, 1
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x10029519
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [esi + edx*2]
lea ecx, [esi + edx*2]
cmp eax, 0x61
jb 0x10029535
cmp eax, 0x7a
jbe 0x1002953f
cmp eax, 0x41
jb 0x100295ad
cmp eax, 0x5a
ja 0x100295ad
cmp word [ecx + 2], 0x3a
jne 0x100295ad
movzx eax, word [ecx + 4]
cmp eax, 0x5c
je 0x10029554
cmp eax, 0x2f
jne 0x100295ad
cmp word [esi + edx*2 + 6], 0
jne 0x100295ad
mov ecx, esi
call fcn.10029160
cmp eax, 0xffffffff
je 0x10029662
test al, 0x10
je 0x10029662
mov ecx, edi
call fcn.10029110
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x20], eax
lea eax, [esi + ecx*2]
push eax
lea ecx, [edi + 0x28]
call fcn.10028700
cmp dword [edi + 0x2c], 2
jbe 0x10029507
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 2
mov word [eax + 4], cx
jmp 0x10029507
mov ecx, esi
call fcn.100319e0
test eax, eax
je 0x10029662
cmp word [esi + eax*2], 0
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
je 0x10029662
mov ecx, eax
call fcn.100318a0
test eax, eax
jns 0x10029662
push esi
lea ecx, [esp + 0x2c]
call fcn.10028640
lea ecx, [esp + 0x28]
call fcn.10028c30
push 0x2a
lea ecx, [esp + 0x2c]
call fcn.10021690
push edi
push dword [esp + 0x2c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], 0
call fcn.10028d60
test al, al
je 0x10029634
lea eax, [edi + 0x28]
mov edx, 0x100d2d80
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.10028c70
test al, al
je 0x1002962f
mov ecx, dword [esp + 0x18]
jmp 0x10029681
mov byte [esp + 0xf], 1
mov ecx, esi
call fcn.10029160
cmp byte [esp + 0xf], 0
mov edx, eax
jne 0x10029669
cmp edx, 0xffffffff
je 0x1002964e
test dl, 0x10
jne 0x10029669
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x28]
push eax
call fcn.1007bfd8
add esp, 4
xor bl, bl
jmp 0x10029509
mov ecx, edi
call fcn.10029110
cmp edx, 0xffffffff
lea ecx, [edi + 0x28]
mov eax, 0x10
cmovne eax, edx
mov dword [edi + 0x20], eax
push dword [esp + 0x14]
call fcn.10028700
mov eax, dword [esp + 0x28]
push eax
call fcn.1007bfd8
add esp, 4
jmp 0x10029507