Function at 0x40111e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x30]
mov dword [edx], 0xddaf831e
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0
push 0x188
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
mov eax, dword [ebp - 0xc]
add eax, 0x94
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004010d0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 8]
add edx, 0x15
mov dword [ebp - 8], edx
mov dword [ebp - 0x50], 0xafef92e
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x50]
sub eax, 0xafed872
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0xffff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0xec], edx
cmp dword [ebp - 0x50], 0xa
jae 0x401205
jmp 0x401241
push 0
push 0x465bd8
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jne 0x401225
jmp 0x401238
push 0x64
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor eax, eax
jmp 0x401439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], 0
jne 0x401260
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401267
mov dword [ebp - 0x34], 0x40
mov edx, dword [ebp - 0x50]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jbe 0x401299
mov eax, dword [ebp - 0x34]
push eax
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xe0], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xe0]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 8]
add edx, 0x456
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x108]
add ecx, 0x400
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x108], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xe0], 0
je 0x401437
mov ecx, dword [ebp - 0xc]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x13c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x108]
add ecx, 0x100
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edx + 0x14], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], 4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14], 0
jbe 0x4013ea
mov edx, dword [ebp - 8]
add edx, 0xf4291
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x401349
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x54], 3
je 0x401355
cmp dword [ebp - 0x54], 0x57
jne 0x40137f
push 4
push 0x1000
mov eax, dword [ebp - 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.004010d0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], 0xffffffff
lea edx, [ebp - 0x89]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x44]
movzx eax, byte [edx]
sub eax, dword [ebp - 0x84]
mov byte [ebp - 0x89], al
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x50]
jb 0x40139c
mov dword [ebp - 0x44], 0xffffffff
jmp 0x40140a
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040143d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xe0]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xe0], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xe0]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x5c]
mov dword [edx + 0x190], eax
xor eax, eax
mov esp, ebp
pop ebp
ret