Function at 0x415de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x415e4f
push 0x317
lea ecx, [ebp + 0xc]
call fcn.004114a0
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push eax
push ecx
push 4
mov dword [ebp - 4], ebx
call fcn.00411f90
add esp, 0x14
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00414940
add esp, 4
test eax, eax
je 0x415ea6
push esi
push 0x314
lea ecx, [ebp + 0xc]
call fcn.00411560
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
push ebx
push ebx
push eax
push edx
push 4
mov dword [ebp - 4], 1
call fcn.00411f90
add esp, 0x14
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
call fcn.00415c50
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 2
cmp dword [eax - 8], ebx
je 0x415f20
push eax
mov ecx, esi
call fcn.0043d420
test eax, eax
jl 0x415f20
push esi
push 0x314
lea ecx, [ebp + 0xc]
call fcn.00411560
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push eax
push ecx
push 4
mov byte [ebp - 4], 3
call fcn.00411f90
add esp, 0x14
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00444260
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov edi, dword [ebp + 0x10]
mov eax, dword [edx - 8]
cmp eax, 4
jge 0x415fd1
push esi
push 0x315
lea ecx, [ebp + 0x10]
call fcn.00411560
mov eax, dword [eax]
push ebx
push ebx
push eax
push edi
push 3
mov byte [ebp - 4], 4
call fcn.00411f90
add esp, 0x14
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00444260
push 0x490b18
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.004445c0
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call ebx
lea ecx, [ebp + 0x10]
call fcn.00444260
push 0x490b40
lea ecx, [ebp - 0x10]
push esi
push ecx
call fcn.004445c0
push 0x490b2c
lea edx, [ebp + 0x10]
push eax
push edx
mov byte [ebp - 4], 5
call fcn.004445c0
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004443f0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00444260
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00444260
mov eax, dword [esi]
push 0
push eax
call ebx
xor ebx, ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41604f
test al, 0x10
je 0x41604f
push esi
call fcn.004133e0
add esp, 4
test eax, eax
jne 0x41604f
push 0x316
lea ecx, [ebp + 0x10]
call fcn.004114a0
mov eax, dword [eax]
push 0x104
push ebx
push eax
push edi
push 3
mov byte [ebp - 4], 7
call fcn.00411f90
add esp, 0x14
cmp eax, 6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
setne bl
call fcn.00444260
test bl, bl
je 0x41604d
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x4161fe
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41606a
test al, 0x10
jne 0x4160e8
push 0x48f
lea ecx, [ebp + 0xc]
call fcn.004114a0
mov ebx, dword [eax]
push esi
push 0x4a0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.00411560
mov eax, dword [eax]
push 4
push ebx
push eax
push edi
push 3
mov byte [ebp - 4], 9
call fcn.00411f90
add esp, 0x14
cmp eax, 6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
setne bl
call fcn.00444260
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00444260
test bl, bl
je 0x4161fe
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0xa
lea ecx, [ebp - 0x78]
call fcn.0043e7f0
push 0xa
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call fcn.0043e7f0
push 0xa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0043e7f0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xc
push eax
push 1
push ebx
push esi
call fcn.004165d0
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp eax, ebx
jne 0x4161da
push 0x48f
lea ecx, [ebp - 0x10]
call fcn.004114a0
mov ebx, dword [eax]
push esi
push 0x4a1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
call fcn.00411560
mov eax, dword [eax]
push 4
push ebx
push eax
push edi
push 2
mov byte [ebp - 4], 0xe
call fcn.00411f90
add esp, 0x14
cmp eax, 6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
setne bl
call fcn.00444260
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00444260
test bl, bl
je 0x4161da
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.0043e890
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.0043e890
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0043e890
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.0043e890
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.0043e890
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0043e890
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret