Function at 0x4182d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041c900
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x114]
mov ebx, dword [ebp - 0x1c]
add ecx, 0x228
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x60], eax
cmp ebx, eax
jb 0x418393
mov edx, ebx
sub edx, eax
cmp ebx, edx
jb 0x418854
cmp dword [ecx + 0x14], 0x10
jb 0x418343
mov ecx, dword [ecx]
push dword [ebp - 0x60]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
cmp edi, 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push dword [ebp - 0x60]
add eax, edx
push eax
call fcn.004160a0
add esp, 0x10
test eax, eax
jne 0x418396
mov edi, dword [esi + 0x114]
cmp dword [edi + 0x254], 0x10
lea ecx, [edi + 0x240]
jb 0x418381
mov ecx, dword [edi + 0x240]
push dword [edi + 0x250]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041c780
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
push 0
cmp edi, 0x10
lea eax, [ebp - 0x2c]
push 0x4ab3c4
cmovae eax, dword [ebp - 0x2c]
push ebx
push eax
call fcn.004162f0
add esp, 0x10
test al, al
jne 0x41844e
mov edi, dword [esi + 0x114]
add edi, 0x228
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x4183cf
mov eax, dword [edi]
push dword [edi + 0x10]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
mov edx, ebx
push 0
call fcn.00416130
add esp, 0xc
cmp eax, 0xffffffff
je 0x41844e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4183f9
mov eax, dword [edi]
push dword [ebp - 0x68]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push dword [edi + 0x10]
cmovae ecx, dword [ebp - 0x2c]
mov edx, ebx
push eax
push ecx
call fcn.00416230
add esp, 0x10
test eax, eax
jne 0x41841d
push edi
jmp 0x418452
lea ecx, [eax + 1]
mov dword [ebp - 0x34], 0
cmp ebx, ecx
mov dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x44], 0
cmovb ecx, ebx
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0041ccc0
jmp 0x41845a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041c900
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x1c]
jae 0x41857c
test eax, eax
je 0x41857c
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
cmp edx, 0x10
jb 0x418484
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4184a1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41849b
shr eax, 4
and al, 1
jne 0x41857c
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov eax, 0x5c
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x60], ax
cmp edx, 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 0xf
cmovae eax, ecx
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.00478b79
mov edx, eax
add esp, 0xc
test edx, edx
je 0x418544
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4184e5
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.0041c780
lea ecx, [ebp - 0x60]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418500
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041c780
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.00478bbb
add esp, 4
mov edi, eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
call fcn.00478b79
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4184e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x41857c
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418572
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418859
push edx
push ecx
call fcn.00459719
add esp, 8
cmp dword [esi + 0x2c], 0
jne 0x418645
mov ecx, dword [esi + 0x28]
cmp dword [ecx], 0
je 0x41859e
call fcn.00416360
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41859e
dec eax
mov dword [esi + 0x2c], eax
push 0x1c
call fcn.0047a613
mov edi, eax
add esp, 4
test edi, edi
je 0x41885e
mov dword [ebp - 0x68], edi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 4]
mov dword [edi], 0
call fcn.0041c900
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x28]
mov dword [eax], edi
lea eax, [ebp - 0x2c]
inc dword [esi + 0x2c]
push eax
call fcn.00418190
mov ebx, eax
test ebx, ebx
je 0x4187c0
mov edi, dword [esi + 0xe8]
mov ecx, dword [edi]
test ecx, ecx
je 0x41861b
push 8
push ecx
call fcn.00459719
mov dword [edi], 0
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
je 0x41861b
dec eax
mov dword [esi + 0xec], eax
push 8
call fcn.0047a613
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41886c
mov dword [ecx], 0
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax], ecx
jmp 0x4187ba
mov ebx, dword [esi + 0x28]
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + edi*4]
lea edx, [esi + 0x30]
test eax, eax
lea ecx, [eax + 4]
cmovne edx, ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov ecx, edx
cmovae eax, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 0x10
jb 0x418673
mov ecx, dword [edx]
push dword [ebp - 0x1c]
push eax
push dword [edx + 0x10]
push ecx
call fcn.004162f0
add esp, 0x10
test al, al
jne 0x4187c0
lea eax, [edi + edi]
mov edi, 1
test eax, eax
cmovne edi, eax
cmp edi, 0x80
jbe 0x418650
mov eax, dword [ebp - 0x64]
cmp dword [ebx + eax*4], 0
lea ecx, [ebx + eax*4]
je 0x4186bc
call fcn.00416360
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4186bc
dec eax
mov dword [esi + 0x2c], eax
push 0x1c
call fcn.0047a613
mov edi, eax
add esp, 4
test edi, edi
je 0x41887a
mov dword [ebp - 0x68], edi
mov ebx, dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
lea ecx, [edi + 4]
push eax
mov dword [edi], ebx
call fcn.0041c900
mov byte [ebp - 4], 1
lea edx, [esi + 0xf0]
mov eax, dword [esi + 0x28]
mov dword [eax + ebx*4], edi
inc dword [esi + 0x2c]
mov edi, dword [esi + 0xe8]
mov eax, dword [edi + ebx*4]
test eax, eax
lea ecx, [eax + 4]
cmovne edx, ecx
mov ecx, dword [edx]
test ecx, ecx
je 0x418725
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [esi + 0xe8]
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x41874f
push 8
push eax
call fcn.00459719
mov dword [edi + ebx*4], 0
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
je 0x41874f
dec eax
mov dword [esi + 0xec], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00418190
mov ebx, eax
test ebx, ebx
je 0x4187c0
mov ecx, dword [esi + 0xe8]
mov eax, dword [ebp - 0x64]
lea edi, [ecx + eax*4]
mov ecx, dword [edi]
test ecx, ecx
je 0x418795
push 8
push ecx
call fcn.00459719
mov dword [edi], 0
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
je 0x418795
dec eax
mov dword [esi + 0xec], eax
push 8
call fcn.0047a613
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x418888
mov edx, dword [ebp - 0x64]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + edx*4], ecx
inc dword [esi + 0xec]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4187f4
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4187ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418896
push edx
push ecx
call fcn.00459719
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x418836
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41882c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41889b
push edx
push ecx
call fcn.00459719
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041acd0
call fcn.00474c79
push 0x4bfe80
lea eax, [ebp - 0x5d]
push eax
call fcn.00471d3a
push 0x4bfe80
lea eax, [ebp - 0x5d]
push eax
call fcn.00471d3a
push 0x4bfe80
lea eax, [ebp - 0x5d]
push eax
call fcn.00471d3a
push 0x4bfe80
lea eax, [ebp - 0x5d]
push eax
call fcn.00471d3a
call fcn.00474c79
call fcn.00474c79
int3