Function at 0x408450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7c0c
call fcn.0042d040
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x45b248
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x400
push 0
push 0x45b270
call fcn.00426230
add esp, 0xc
push 0x400
push 0x45b270
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x45b270
call fcn.00420190
mov edx, eax
add esp, 8
mov ebx, 0x45b270
test edx, edx
je 0x4084f3
mov ecx, dword [str.LogABC]
mov dword [edx + 1], ecx
mov cx, word [0x44db5c]
mov word [edx + 5], cx
mov al, byte [0x44db5e]
push 0
push ebx
mov byte [edx + 7], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4084e0
mov ax, word [0x44db60]
mov word [edi], ax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00426230
lea eax, [ebp - 0x7c0c]
push eax
call fcn.00439a13
lea eax, [ebp - 0x7c0c]
push eax
call fcn.00439776
push dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc ecx
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x404]
push str._d__02d__02d
push eax
call fcn.0041ea25
lea edx, [ebp - 0x404]
add esp, 0x28
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x408552
sub edx, esi
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408560
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec ebx
mov al, byte [ebx + 1]
lea ebx, [ebx + 1]
test al, al
jne 0x408577
mov eax, dword [str..log]
mov dword [ebx], eax
mov al, byte [0x44db78]
push 0x44db7c
push 0x45b270
mov byte [ebx + 4], al
call fcn.00438316
add esp, 8
mov dword [0x45b260], eax
test eax, eax
je 0x408693
lea eax, [ebp - 0x7c0c]
push eax
call fcn.00439a13
lea eax, [ebp - 0x7c0c]
push eax
call fcn.00439776
push 0x2800
mov esi, eax
lea eax, [ebp - 0x2c04]
push 0
push eax
call fcn.00426230
push dword [esi]
lea eax, [ebp - 0x2c04]
push dword [esi + 4]
push dword [esi + 8]
push str.__02d:_02d:_02d_
push eax
call fcn.0041ea25
push 0x4fff
lea eax, [ebp - 0x7c03]
push 0
push eax
mov byte [ebp - 0x7c04], 0
call fcn.00426230
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x7c04]
push eax
call fcn.00422e55
lea edx, [ebp - 0x7c04]
add esp, 0x40
mov esi, edx
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x408630
lea edi, [ebp - 0x2c04]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408640
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2c04]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408660
mov ax, word [0x44d714]
push dword [0x45b260]
mov word [edi], ax
lea eax, [ebp - 0x2c04]
push eax
call fcn.00439670
push dword [0x45b260]
call fcn.0042037e
add esp, 0xc
push 0x45b248
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e77a
mov esp, ebp
pop ebp
ret