Function at 0x40a990
Capabilities:
Create directory

Disassembly:
mov eax, 0x82124
call fcn.0043ae00
mov eax, dword [0x5018ec]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x40abf2
cmp dword [0x4f3ecc], ebx
jle 0x40abfe
mov al, byte [0x473aa0]
mov ecx, 0x41
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
push 0x5018f0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x46f188
push ecx
call fcn.0043afc4
add esp, 0xc
lea edx, [esp + 0x20]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x501d04], ebx
jne 0x40aa33
push 0x5018f0
lea eax, [esp + 0x24]
push str._slog.txt
push eax
call fcn.0043afc4
mov ecx, dword [0x501d00]
mov edx, dword [0x4f3ecc]
push ecx
push edx
lea eax, [esp + 0x34]
push 0x473ec8
push eax
call fcn.0040a630
add esp, 0x1c
jmp 0x40abf2
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x112d]
mov byte [esp + 0x112c], dl
mov byte [esp + 0x2130], dl
rep stosd dword es:[edi], eax
mov ecx, 0x20000
lea edi, [esp + 0x2131]
mov esi, 0x473ec8
rep stosd dword es:[edi], eax
mov ecx, esi
test ecx, ecx
je 0x40abf2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40abf2
lea edi, [esi + 1]
push 0xa
lea edx, [esp + 0x1130]
push edi
push edx
call fcn.0043c150
push 0xa
lea eax, [esp + 0x113c]
push edi
push eax
mov byte [esp + 0x114e], bl
mov byte [esp + 0x2148], bl
mov dword [esp + 0x28], ebx
call fcn.00445b80
add esp, 0x18
test eax, eax
jne 0x40ab79
mov ebp, dword [esp + 0x10]
push 0x46e38c
inc ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.0043ad80
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40ab77
mov cl, byte [0x473aa0]
xor eax, eax
mov byte [esp + 0x128], cl
mov ecx, 0x400
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
mov edi, ebp
lea eax, [esp + 0x128]
sub edi, esi
lea edx, [edi + 2]
push edx
push esi
push eax
call fcn.0043c150
mov byte [esp + edi + 0x136], bl
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x213c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 2]
lea ecx, [esp + 0x113c]
lea eax, [esi + 1]
push eax
push ecx
call fcn.00445b80
add esp, 0x18
test eax, eax
je 0x40aac6
jmp 0x40ab79
xor esi, esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1138]
push str._d__d__d
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0043c620
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push 0x5018f0
lea eax, [esp + 0x44]
push str._slog_d_02d_02d.txt
push eax
call fcn.0043afc4
mov ecx, dword [0x501d00]
mov edx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x2160]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0040a630
add esp, 0x3c
cmp esi, ebx
jne 0x40aa74
mov dword [0x4f3ecc], ebx
mov byte [0x473ec8], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82124
ret