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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4173cc]
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 edi, ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
push 0xb
push str.c:iNodeLog
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004014a0
mov eax, dword [ebp - 0xac]
mov esi, 0x10
cmp dword [ebp - 0x98], esi
jae 0x4029af
lea eax, [ebp - 0xac]
push eax
call fcn.00403110
add esp, 4
test eax, eax
jne 0x4029d8
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], esi
jae 0x4029d0
lea eax, [ebp - 0xac]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0xac]
cmp dword [ebp - 0x98], esi
jae 0x4029ec
lea edx, [ebp - 0xac]
mov eax, edx
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a00
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x80]
call fcn.004014a0
push 1
mov eax, 0x4143ec
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401380
mov eax, edi
lea edx, [eax + 1]
jmp 0x402a30
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a30
sub eax, edx
push eax
mov eax, edi
lea ecx, [ebp - 0x80]
call fcn.00401380
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x8c]
movzx eax, word [ebp - 0x8a]
movzx ecx, word [ebp - 0x8e]
push edx
movzx edx, word [ebp - 0x90]
push eax
push ecx
push edx
lea eax, [ebp - 0x24]
push str._04u_02u_02u_02u
push eax
call fcn.00404c19
lea eax, [ebp - 0x24]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a88
sub eax, edx
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x80]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [ebp - 0x80]
call fcn.00401380
mov eax, dword [ebp - 0x80]
mov esi, 0x10
cmp dword [ebp - 0x6c], esi
jae 0x402abc
lea eax, [ebp - 0x80]
push eax
call fcn.00403080
add esp, 4
test eax, eax
jne 0x402c0b
mov eax, edi
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ae8
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0xc8]
call fcn.004014a0
mov byte [ebp - 4], 2
movzx ecx, word [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xd4]
push str._02u
push edx
call fcn.00404c19
lea eax, [ebp - 0xd4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402b27
sub eax, edx
push eax
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xc8]
call fcn.00401380
push 4
mov eax, str..log
lea ecx, [ebp - 0xc8]
call fcn.00401380
mov ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0xb4], esi
jae 0x402b68
lea ecx, [ebp - 0xc8]
cmp dword [ebp - 0x98], esi
mov esi, dword [ebp - 0xac]
jae 0x402b7c
lea esi, [ebp - 0xac]
call fcn.00403300
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
jae 0x402b8d
lea eax, [ebp - 0x80]
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 0x402bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402bd7
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
jae 0x402bc6
lea eax, [ebp - 0x80]
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 - 0xb4], edi
jb 0x402bf3
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00404bff
add esp, 4
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
jmp 0x402c30
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x402c16
lea eax, [ebp - 0x80]
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 0x402c51
cmp dword [ebp - 0x6c], edi
jb 0x402c46
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x98], edi
jmp 0x402d63
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [ebp - 0x84]
movzx ecx, word [ebp - 0x86]
movzx edx, word [ebp - 0x88]
push eax
movzx eax, word [ebp - 0x8a]
push ecx
movzx ecx, word [ebp - 0x8e]
push edx
movzx edx, word [ebp - 0x90]
push eax
push ecx
push edx
lea eax, [ebp - 0x64]
push str.__04u__02u__02u__02u:_02u:_02u_
push eax
mov dword [ebp - 0xcc], ebx
call fcn.00404c19
lea eax, [ebp - 0x64]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402cb0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0xcc]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x64]
push edx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x64]
push str.__x_
push eax
call fcn.00404c19
lea eax, [ebp - 0x64]
add esp, 0xc
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402cf0
push ebx
sub eax, ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
lea edx, [ebp - 0x64]
push edx
push esi
call edi
mov eax, dword [ebp - 0xd0]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402d12
mov edx, dword [ebp - 0xd0]
push ebx
sub eax, ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
push edx
push esi
call edi
push ebx
lea eax, [ebp - 0xcc]
push eax
push 2
push 0x414494
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x6c], esi
jb 0x402d5d
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x98], esi
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], 0xf
jb 0x402d81
mov edx, dword [ebp - 0xac]
push edx
call fcn.00404bff
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 - 0x14]
xor ecx, ebp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret