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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460f91
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x4745a8]
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 + 8]
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push str.setup
mov dword [ebp - 4], ebx
call fcn.00424480
add esp, 0xc
cmp eax, ebx
je 0x420710
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4206e0
sub eax, edx
push eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x1a0]
call fcn.00407c70
push 0xa
push str.:iNodeLog
lea ecx, [ebp - 0x1a0]
call fcn.00412810
jmp 0x420722
push 0xb
push str.C:iNodeLog
lea ecx, [ebp - 0x1a0]
call fcn.00407c70
mov eax, dword [ebp - 0x1a0]
mov edi, 0x10
cmp dword [ebp - 0x18c], edi
jae 0x42073b
lea eax, [ebp - 0x1a0]
push eax
call fcn.004306f0
add esp, 4
test eax, eax
jne 0x420764
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x42075c
lea eax, [ebp - 0x1a0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x420778
lea edx, [ebp - 0x1a0]
mov eax, edx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420790
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x184]
call fcn.00407c70
push 6
push str._setup
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00412810
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1ac]
movzx edx, word [ebp - 0x1aa]
movzx eax, word [ebp - 0x1ae]
push ecx
movzx ecx, word [ebp - 0x1b0]
push edx
push eax
push ecx
lea edx, [ebp - 0x20]
push str._04u_02u_02u_02u
push edx
call fcn.0043ac3a
lea eax, [ebp - 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420800
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x184]
call fcn.00412810
push 4
push str..log
lea ecx, [ebp - 0x184]
call fcn.00412810
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x42083f
lea eax, [ebp - 0x184]
push eax
call fcn.00430650
add esp, 4
test eax, eax
jne 0x42099d
push 5
push str.setup
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], ebx
mov byte [ebp - 0x1cc], bl
call fcn.00407c70
movzx ecx, word [ebp - 0x1ac]
push ecx
lea edx, [ebp - 0x1d8]
push str._02u
push edx
mov byte [ebp - 4], 2
call fcn.0043ac3a
lea eax, [ebp - 0x1d8]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4208a1
sub eax, edx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00412810
push 4
push str..log
lea ecx, [ebp - 0x1cc]
call fcn.00412810
mov ecx, dword [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], edi
jae 0x4208e3
lea ecx, [ebp - 0x1cc]
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x4208f7
lea eax, [ebp - 0x1a0]
push ecx
push eax
call fcn.004309c0
mov eax, dword [ebp - 0x184]
add esp, 8
cmp dword [ebp - 0x170], edi
jae 0x420915
lea eax, [ebp - 0x184]
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 0x420968
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420968
cmp dword [ebp - 0x170], 0x10
mov eax, dword [ebp - 0x184]
jae 0x420957
lea eax, [ebp - 0x184]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
mov esi, eax
cmp dword [ebp - 0x1b8], 0x10
jb 0x420980
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], ebx
mov byte [ebp - 0x1cc], bl
mov edi, 0x10
jmp 0x4209c6
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x4209b1
lea eax, [ebp - 0x184]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420a10
cmp dword [ebp - 0x170], edi
jb 0x4209e2
mov edx, dword [ebp - 0x184]
push edx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], edi
jb 0x420b45
mov eax, dword [ebp - 0x1a0]
push eax
jmp 0x420b3d
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [ebp - 0x1a4]
movzx edx, word [ebp - 0x1a6]
movzx eax, word [ebp - 0x1a8]
push ecx
movzx ecx, word [ebp - 0x1aa]
push edx
movzx edx, word [ebp - 0x1ae]
push eax
movzx eax, word [ebp - 0x1b0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x60]
push str.__04u__02u__02u__02u:_02u:_02u_
push ecx
mov dword [ebp - 0x1d0], ebx
call fcn.0043ac3a
lea eax, [ebp - 0x60]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420a68
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
lea edx, [ebp - 0x1d0]
push edx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0x60]
push str.__x_
push ecx
call fcn.0043ac3a
lea eax, [ebp - 0x60]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420aa5
push ebx
lea edx, [ebp - 0x1d0]
push edx
sub eax, ecx
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call edi
mov eax, dword [ebp - 0x1d4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420ac7
mov edx, dword [ebp - 0x1d4]
push ebx
sub eax, ecx
lea ecx, [ebp - 0x1d0]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 2
push 0x46668c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x170], esi
jb 0x420b18
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.00439f71
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x18c], esi
jb 0x420b45
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.00439f71
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.00439bf4
mov esp, ebp
pop ebp
ret