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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7a18
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5603e8]
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 edx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x436a15
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405660
mov dword [ebp - 4], edi
or eax, 0xffffffff
mov dword [ebp - 0x54], 0x5c
jmp 0x436a40
mov ebx, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x4c], edx
cmp edx, ebx
jae 0x436a7c
mov edi, ebx
sub edi, edx
cmp edi, 1
jb 0x436a7c
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x436a62
lea eax, [ebp - 0x2c]
lea eax, [eax + edx*2]
mov dword [ebp - 0x50], eax
mov ecx, edi
test edi, edi
je 0x436a7c
mov edi, edi
cmp word [eax], 0x5c
je 0x436ad5
add eax, 2
dec ecx
jne 0x436a70
or eax, 0xffffffff
mov esi, eax
cmp eax, 0xffffffff
jne 0x436bb2
mov dword [ebp - 0x50], 0x2f
cmp edx, ebx
jae 0x436b8b
sub ebx, edx
cmp ebx, 1
jb 0x436b8b
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x436ab4
lea eax, [ebp - 0x2c]
lea eax, [eax + edx*2]
mov dword [ebp - 0x4c], eax
mov ecx, ebx
test ebx, ebx
je 0x436b90
cmp word [eax], 0x2f
je 0x436b33
add eax, 2
dec ecx
jne 0x436ac4
jmp 0x436b90
test eax, eax
je 0x436a7c
mov esi, 1
lea edx, [ebp - 0x54]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x436b0f
add ecx, 2
add edx, 2
dec esi
jne 0x436ae3
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x436b00
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x4c]
sub eax, ecx
sar eax, 1
jmp 0x436a7f
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x436af4
mov ebx, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, dword [ebp - 0x50]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
mov edx, dword [ebp - 0x4c]
add eax, 2
jmp 0x436a65
test eax, eax
je 0x436b90
mov esi, 1
lea edx, [ebp - 0x50]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x436b68
add ecx, 2
add edx, 2
dec esi
jne 0x436b41
mov ecx, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x436b62
lea ecx, [ebp - 0x2c]
sub eax, ecx
sar eax, 1
jmp 0x436b93
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x436b52
mov ecx, eax
sub ecx, dword [ebp - 0x4c]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add ebx, edx
add eax, 2
mov edi, 8
jmp 0x436ab7
mov edi, 8
or eax, 0xffffffff
mov esi, eax
cmp eax, 0xffffffff
jne 0x436bb7
cmp dword [ebp - 0x18], edi
jb 0x436bab
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x436c5f
mov edi, 8
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409fc0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x436bd1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436be1
test al, 0x10
jne 0x436bf9
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x436bec
lea eax, [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436c11
cmp dword [ebp - 0x34], edi
jb 0x436c0a
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x436a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436c25
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0x34], edi
jb 0x436c38
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x436c5d
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
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.004b12f6
mov esp, ebp
pop ebp
ret