Function at 0x42a650
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467c21
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x47c5a8]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2dc], eax
cmp dword [ebp + 0x10], ebx
je 0x42a69d
cmp dword [0x47deb4], ebx
je 0x42ac01
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], ebx
mov byte [ebp - 0x2a8], bl
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push str.setup
mov dword [ebp - 4], ebx
call fcn.00429c50
add esp, 0xc
cmp eax, ebx
je 0x42a741
xor eax, eax
jmp 0x42a6e0
mov cl, byte [ebp + eax - 0x168]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x42a6e0
lea eax, [ebp - 0x270]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x42a700
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a711
sub eax, edx
push eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00407d70
push 0xa
push str.:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.00413820
jmp 0x42a753
push 0xb
push str.C:iNodeLog
lea ecx, [ebp - 0x2a8]
call fcn.00407d70
mov eax, dword [ebp - 0x2a8]
mov esi, 0x10
cmp dword [ebp - 0x294], esi
jae 0x42a76c
lea eax, [ebp - 0x2a8]
push eax
call fcn.00436640
add esp, 4
test eax, eax
jne 0x42a795
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x42a78d
lea eax, [ebp - 0x2a8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x42a7a9
lea ecx, [ebp - 0x2a8]
mov eax, ecx
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42a7c4
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x28c]
call fcn.00407d70
push 1
push 0x46cb94
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
call fcn.00413820
push 4
push str.stp_
lea ecx, [ebp - 0x28c]
call fcn.00413820
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42a807
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x28c]
call fcn.00413820
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x2b4]
movzx edx, word [ebp - 0x2b2]
movzx eax, word [ebp - 0x2b6]
push ecx
movzx ecx, word [ebp - 0x2b8]
push edx
push eax
push ecx
lea edx, [ebp - 0x20]
push str._04u_02u_02u_02u
push edx
call fcn.00440eaa
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a861
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00413820
push 4
push str..log
lea ecx, [ebp - 0x28c]
call fcn.00413820
mov eax, dword [ebp - 0x28c]
mov esi, 0x10
cmp dword [ebp - 0x278], esi
jae 0x42a8a5
lea eax, [ebp - 0x28c]
push eax
call fcn.004365a0
add esp, 4
test eax, eax
jne 0x42aa3b
mov eax, edi
mov dword [ebp - 0x2c0], 0xf
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a8d1
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2d4]
call fcn.00407d70
push 4
push str.stp_
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 2
call fcn.00407d70
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a902
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2d4]
call fcn.00413820
movzx ecx, word [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x2e0]
push str._02u
push edx
call fcn.00440eaa
lea eax, [ebp - 0x2e0]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a940
sub eax, edx
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00413820
push 4
push str..log
lea ecx, [ebp - 0x2d4]
call fcn.00413820
mov ecx, dword [ebp - 0x2d4]
cmp dword [ebp - 0x2c0], esi
jae 0x42a982
lea ecx, [ebp - 0x2d4]
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x294], esi
jae 0x42a996
lea eax, [ebp - 0x2a8]
push ecx
push eax
call fcn.00436c20
mov eax, dword [ebp - 0x28c]
add esp, 8
cmp dword [ebp - 0x278], esi
jae 0x42a9b4
lea eax, [ebp - 0x28c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x42aa07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42aa07
cmp dword [ebp - 0x278], 0x10
mov eax, dword [ebp - 0x28c]
jae 0x42a9f6
lea eax, [ebp - 0x28c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
mov edi, 0x10
cmp dword [ebp - 0x2c0], edi
jb 0x42aa23
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x2c0], 0xf
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
jmp 0x42aa69
mov eax, dword [ebp - 0x28c]
cmp dword [ebp - 0x278], esi
jae 0x42aa4f
lea eax, [ebp - 0x28c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov edi, 0x10
cmp esi, 0xffffffff
jne 0x42aab3
cmp dword [ebp - 0x278], edi
jb 0x42aa85
mov edx, dword [ebp - 0x28c]
push edx
call fcn.004401d7
add esp, 4
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
cmp dword [ebp - 0x294], edi
jb 0x42ac01
mov eax, dword [ebp - 0x2a8]
push eax
jmp 0x42abf9
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [ebp - 0x2ac]
movzx edx, word [ebp - 0x2ae]
movzx eax, word [ebp - 0x2b0]
push ecx
movzx ecx, word [ebp - 0x2b2]
push edx
movzx edx, word [ebp - 0x2b6]
push eax
movzx eax, word [ebp - 0x2b8]
push ecx
push edx
push eax
lea ecx, [ebp - 0x60]
push str.__04u__02u__02u__02u:_02u:_02u_
push ecx
mov dword [ebp - 0x2d8], ebx
call fcn.00440eaa
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
jmp 0x42ab10
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42ab10
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
lea edx, [ebp - 0x2d8]
push edx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
cmp dword [ebp + 0x10], ebx
je 0x42ab46
push ebx
lea ecx, [ebp - 0x2d8]
push ecx
push 6
push str._DTL_
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [ebp - 0x60]
push str._0x_x_
push edx
call fcn.00440eaa
lea eax, [ebp - 0x60]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42ab64
push ebx
lea ecx, [ebp - 0x2d8]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x60]
push edx
push esi
call edi
mov eax, dword [ebp - 0x2dc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42ab86
mov edx, dword [ebp - 0x2dc]
push ebx
sub eax, ecx
lea ecx, [ebp - 0x2d8]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x2d8]
push eax
push 2
push 0x46cbbc
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x278], 0x10
jb 0x42abd3
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.004401d7
add esp, 4
cmp dword [ebp - 0x294], 0x10
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
jb 0x42ac01
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.004401d7
add esp, 4
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.0043fe5a
mov esp, ebp
pop ebp
ret