Function at 0x402e00
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x220
push ebx
mov ebx, dword [0x4171b8]
xor edx, edx
push ebp
cmp word [0x41ec4c], dx
mov ebp, dword [0x417048]
push esi
mov esi, dword [0x4170b4]
push edi
mov dword [esp + 0x22c], edx
jne 0x402e72
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push 0x104
push eax
push edx
call esi
push 0x104
lea ecx, [esp + 0x28]
push 0x41ec4c
push ecx
call ebp
push 0x41ec4c
call ebx
push 0x41ec4c
call dword [0x4171b4]
push 0x41ec4c
lea ecx, [esp + 0x24]
call fcn.00403360
lea edx, [esp + 0x20]
push str.testdir
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403c20
lea ecx, [esp + 0x20]
call fcn.00403950
mov ecx, dword [esp + 0x14]
xor edi, edi
push edi
push ecx
call dword [0x417044]
mov edx, dword [esp + 0x14]
test eax, eax
push edx
sete byte [esp + 0x17]
call dword [0x417040]
lea ecx, [esp + 0x14]
call fcn.00403950
mov al, byte [esp + 0x13]
test al, al
je 0x402f53
mov word [esp + 0x24], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x28]
push 0x23
push eax
push 0
call dword [0x4171a0]
test eax, eax
jne 0x402f0b
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [0x41703c]
push 7
lea edx, [esp + 0x28]
push str.360SD_
push edx
call fcn.0040cedb
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [0x4171b0]
test eax, eax
jne 0x402f3a
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [0x417044]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
push edx
call fcn.00403360
mov ebx, 1
lea esi, [esp + 0x1c]
jmp 0x402fb8
cmp word [0x41ec4c], di
jne 0x402fa1
mov word [esp + 0x24], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push 0x104
push eax
push 0
call esi
push 0x104
lea ecx, [esp + 0x28]
push 0x41ec4c
push ecx
call ebp
push 0x41ec4c
call ebx
push 0x41ec4c
call dword [0x4171b4]
push 0x41ec4c
lea ecx, [esp + 0x1c]
call fcn.00403360
mov ebx, 2
lea esi, [esp + 0x18]
mov edx, dword [0x41a050]
mov eax, 0x41a2a8
test eax, eax
mov dword [esp + 0x14], edx
je 0x402fd6
push 0x41a2a8
call dword [0x4170cc]
mov ecx, dword [esi]
push 0x41a2a8
push eax
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403aa0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x234]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x40300c
push eax
mov dword [esi], ecx
call dword [0x417034]
jmp 0x40301c
mov edx, dword [0x41a050]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.004034c0
lea ecx, [esp + 0x14]
call fcn.00403950
mov edi, dword [0x417130]
test bl, 2
je 0x40305e
mov eax, dword [esp + 0x18]
mov edx, dword [0x41a054]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40305e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40305e
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0040ccc2
add esp, 4
test bl, 1
je 0x40308e
mov eax, dword [esp + 0x1c]
mov edx, dword [0x41a054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40308e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40308e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.0040ccc2
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret