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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533198
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x56adc0]
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xf8], edi
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], edi
mov word [ebp - 0x94], cx
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
push 0x800
mov byte [ebp - 4], 1
call fcn.004f7291
mov esi, eax
add esp, 4
mov dword [ebp - 0xec], esi
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], cx
lea edx, [esi + eax*2]
push edx
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00431790
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00527ae0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.004044ed
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], 8
jb 0x430b76
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.004f77ab
add esp, 4
mov ecx, dword [ebp - 0x84]
lea eax, [ecx - 4]
cmp eax, ecx
ja 0x430b93
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x94]
call fcn.00404c53
jmp 0x430ba2
sub eax, ecx
push edi
push eax
lea ecx, [ebp - 0x94]
call fcn.004130e0
push 0xa
xor edx, edx
push 0x54a038
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xbc], edi
mov word [ebp - 0xcc], dx
call fcn.00404bd5
lea esi, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.004251c0
lea ebx, [ebp - 0xcc]
mov ecx, eax
lea edi, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.00424f20
mov edi, eax
lea eax, [ebp - 0x30]
mov ebx, 8
cmp eax, edi
je 0x430c5f
cmp dword [ebp - 0x1c], ebx
jb 0x430c0e
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004f77ab
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], dx
cmp dword [edi + 0x14], ebx
jae 0x430c3b
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x30]
push edi
push ecx
call fcn.004f6f30
add esp, 0xc
jmp 0x430c42
mov edx, dword [edi]
mov dword [ebp - 0x30], edx
mov dword [edi], esi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], dx
jmp 0x430c61
xor esi, esi
cmp dword [ebp - 0xd4], ebx
jb 0x430c78
mov eax, dword [ebp - 0xe8]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd8], esi
mov word [ebp - 0xe8], cx
cmp dword [ebp - 0x9c], ebx
jb 0x430ca8
mov edx, dword [ebp - 0xb0]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], esi
mov word [ebp - 0xb0], ax
cmp dword [ebp - 0xb8], ebx
jb 0x430cdc
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.004f77ab
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x430d88
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x430d03
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x430d00
test al, 0x10
jne 0x430d90
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x430d0b
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430d90
mov edi, dword [ebp - 0xf4]
mov dword [edi], esi
mov dword [edi + 4], esi
cmp dword [ebp - 0x38], ebx
jb 0x430d33
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004f77ab
add esp, 4
mov ecx, dword [ebp - 0xec]
xor eax, eax
push ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
call fcn.004f7776
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x430d63
mov edx, dword [ebp - 0x30]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x80], ebx
jb 0x431067
mov ecx, dword [ebp - 0x94]
push ecx
jmp 0x43105f
lea eax, [ebp - 0x30]
jmp 0x430cec
cmp dword [ebp - 0x38], ebx
jb 0x430da1
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004f77ab
add esp, 4
mov ecx, dword [ebp - 0xec]
xor eax, eax
mov edi, 7
push ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
call fcn.004f7776
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x100]
push edx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor eax, eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x100]
push edx
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x5a], eax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov word [ebp - 0x4e], ax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x78], ax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, str._s__d__d__d___d__d.log
mov byte [ebp - 4], bl
call fcn.0041b600
add esp, 4
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xec], edx
call fcn.0041b690
push eax
lea ecx, [ebp - 0x56]
call fcn.00431890
push eax
lea ecx, [ebp - 0x5a]
call fcn.00431890
push eax
lea ecx, [ebp - 0x5c]
call fcn.00431890
push eax
lea ecx, [ebp - 0x58]
call fcn.00431890
push eax
lea ecx, [ebp - 0xf8]
call fcn.0041b790
push eax
lea ecx, [ebp - 0xec]
call fcn.0041b890
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x104]
cmp eax, esi
je 0x430ebb
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x430ebb
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x430ebb
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
cmp dword [ebp - 0x68], esi
je 0x431006
lea ebx, [ebp - 0x78]
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0x4c]
call fcn.00424f20
push 4
mov byte [ebp - 4], 0xa
call fcn.004f7806
mov edi, eax
add esp, 4
mov ebx, 8
cmp edi, esi
je 0x430f1d
cmp dword [ebp - 0x38], ebx
jb 0x430f12
mov eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x430f17
xor ecx, ecx
cmp cx, word [eax]
je 0x430f17
push 0x40
push 0x54adb4
push eax
call fcn.004fa8f8
add esp, 0xc
mov dword [edi], eax
jmp 0x430f1f
lea eax, [ebp - 0x4c]
jmp 0x430ef7
xor eax, eax
mov dword [edi], eax
jmp 0x430f1f
xor edi, edi
push edi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
call fcn.004319c0
mov ecx, dword [ebp - 0xf0]
cmp dword [ecx], esi
je 0x430fe1
mov edi, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
mov dword [edi], esi
mov dword [edi + 4], esi
cmp edi, edx
je 0x430f75
mov edx, dword [ebp - 0xec]
mov eax, esi
mov dword [edi + 4], edx
mov dword [ebp - 0xec], eax
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.00431750
cmp dword [ebp - 0x38], ebx
jb 0x430f95
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x64], 8
mov ebx, 7
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
jb 0x430fb8
mov edx, dword [ebp - 0x78]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], esi
mov word [ebp - 0x78], ax
jb 0x430fd6
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
cmp dword [ebp - 0x80], 8
mov dword [ebp - 0x1c], ebx
jmp 0x43104f
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.00431750
cmp dword [ebp - 0x38], ebx
jb 0x431001
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004f77ab
add esp, 4
mov ebx, 8
mov edi, dword [ebp - 0xf4]
mov dword [edi], esi
mov dword [edi + 4], esi
cmp dword [ebp - 0x64], ebx
jb 0x431022
mov edx, dword [ebp - 0x78]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], esi
mov word [ebp - 0x78], ax
cmp dword [ebp - 0x1c], ebx
jb 0x431043
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
cmp dword [ebp - 0x80], ebx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], dx
mov dword [ebp - 0x20], esi
jb 0x431067
mov eax, dword [ebp - 0x94]
push eax
call fcn.004f77ab
add esp, 4
mov eax, edi
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.004f6bad
mov esp, ebp
pop ebp
ret