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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf898
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4fbf60]
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 ebx, ebx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf8], ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ebx
mov word [ebp - 0x94], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
push 0x800
mov byte [ebp - 4], 1
call fcn.0047df4d
mov esi, eax
add esp, 4
mov dword [ebp - 0xec], esi
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 3
call fcn.004abf00
lea edx, [esi + edi*2]
push esi
lea esi, [ebp - 0x4c]
call fcn.00427660
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, esi
call fcn.004abfb0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.0040238a
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], 8
jb 0x42696f
mov edx, dword [ebp - 0xb0]
push edx
call fcn.0047f3b4
add esp, 4
mov ecx, dword [ebp - 0x84]
lea eax, [ecx - 4]
cmp eax, ecx
ja 0x42698c
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x94]
call fcn.0040297a
jmp 0x42699b
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040b410
push 0xa
xor eax, eax
push 0x4decd0
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], ebx
mov word [ebp - 0xcc], ax
call fcn.004028fc
lea esi, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.0041cbe0
lea ebx, [ebp - 0xcc]
mov ecx, eax
lea edi, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.0041c970
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.004132a0
mov ebx, 8
cmp dword [ebp - 0xd4], ebx
jb 0x426a15
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.0047f3b4
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], esi
mov word [ebp - 0xe8], dx
cmp dword [ebp - 0x9c], ebx
jb 0x426a48
mov eax, dword [ebp - 0xb0]
push eax
call fcn.0047f3b4
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], esi
mov word [ebp - 0xb0], cx
cmp dword [ebp - 0xb8], ebx
jb 0x426a78
mov edx, dword [ebp - 0xcc]
push edx
call fcn.0047f3b4
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x426b24
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x426a9f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426a9c
test al, 0x10
jne 0x426b2c
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x426aa7
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x426b2c
mov edi, dword [ebp - 0xf4]
mov dword [edi], esi
mov dword [edi + 4], esi
cmp dword [ebp - 0x38], ebx
jb 0x426acf
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0047f3b4
add esp, 4
mov edx, dword [ebp - 0xec]
xor ecx, ecx
push edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
call fcn.0047f173
add esp, 4
cmp dword [ebp - 0x1c], ebx
jb 0x426aff
mov eax, dword [ebp - 0x30]
push eax
call fcn.0047f3b4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x80], ebx
jb 0x426e00
mov edx, dword [ebp - 0x94]
push edx
jmp 0x426df8
lea eax, [ebp - 0x30]
jmp 0x426a88
cmp dword [ebp - 0x38], ebx
jb 0x426b3d
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0047f3b4
add esp, 4
mov edx, dword [ebp - 0xec]
xor ecx, ecx
push edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
call fcn.0047f173
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor eax, eax
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5a], eax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov word [ebp - 0x4e], ax
push edx
lea eax, [ebp - 0x100]
xor ecx, ecx
push eax
mov word [ebp - 0x5c], cx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor ecx, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x78], cx
lea edx, [ebp - 0x108]
push edx
mov ecx, str._s__d__d__d___d__d.log
mov byte [ebp - 4], bl
call fcn.0040a690
add esp, 4
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
mov dword [ebp - 0xec], ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040a720
push eax
lea ecx, [ebp - 0x56]
call fcn.00427530
push eax
lea ecx, [ebp - 0x5a]
call fcn.00427530
push eax
lea ecx, [ebp - 0x5c]
call fcn.00427530
push eax
lea ecx, [ebp - 0x58]
call fcn.00427530
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040a7a0
push eax
lea ecx, [ebp - 0xec]
call fcn.0040a920
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x104]
cmp eax, esi
je 0x426c54
mov edi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x426c54
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x426c54
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp dword [ebp - 0x68], esi
je 0x426d9f
lea ebx, [ebp - 0x78]
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0x4c]
call fcn.0041c970
push 4
mov byte [ebp - 4], 0xa
call fcn.0047f786
mov edi, eax
add esp, 4
mov ebx, 8
cmp edi, esi
je 0x426cb6
cmp dword [ebp - 0x38], ebx
jb 0x426cab
mov eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x426cb0
xor ecx, ecx
cmp cx, word [eax]
je 0x426cb0
push 0x40
push 0x4dfaac
push eax
call fcn.00482661
add esp, 0xc
mov dword [edi], eax
jmp 0x426cb8
lea eax, [ebp - 0x4c]
jmp 0x426c90
xor eax, eax
mov dword [edi], eax
jmp 0x426cb8
xor edi, edi
push edi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
call fcn.00427760
mov ecx, dword [ebp - 0xf0]
cmp dword [ecx], esi
je 0x426d7a
mov edi, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
mov dword [edi], esi
mov dword [edi + 4], esi
cmp edi, edx
je 0x426d0e
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.00427440
cmp dword [ebp - 0x38], ebx
jb 0x426d2e
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0047f3b4
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 0x426d51
mov edx, dword [ebp - 0x78]
push edx
call fcn.0047f3b4
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 0x426d6f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047f3b4
add esp, 4
xor edx, edx
cmp dword [ebp - 0x80], 8
mov dword [ebp - 0x1c], ebx
jmp 0x426de8
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.00427440
cmp dword [ebp - 0x38], ebx
jb 0x426d9a
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0047f3b4
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 0x426dbb
mov edx, dword [ebp - 0x78]
push edx
call fcn.0047f3b4
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 0x426ddc
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047f3b4
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 0x426e00
mov eax, dword [ebp - 0x94]
push eax
call fcn.0047f3b4
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.0047f164
mov esp, ebp
pop ebp
ret