Function at 0x412390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x4f002c]
lea ecx, [ebp - 0x68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
lea ecx, [ebp - 0x28]
call fcn.0040f840
xor ebx, ebx
nop word [eax + eax]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], 0
cmp eax, dword [ebp + 0xc]
je 0x41242b
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x4123ed
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp esi, 7
jbe 0x412410
sub esp, 0xc
movzx ecx, byte [ebp - 0x58]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00402b9a
jmp 0x41242b
lea ecx, [esi + esi]
mov dword [ebp - 0x30], esi
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a8f10
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea esi, [ebp - 0x58]
push esi
call fcn.00421060
add esp, 8
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 7
mov ecx, esi
jbe 0x41244b
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov esi, edi
sub esi, edx
cmp esi, eax
jae 0x412480
sub esp, 0x10
movzx edx, byte [ebp - 0x5c]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.0040ef20
jmp 0x4124a7
lea esi, [edx + eax]
cmp edi, 7
lea edi, [ebp - 0x40]
mov dword [ebp - 0x30], esi
jbe 0x412491
mov edi, dword [ebp - 0x40]
add eax, eax
lea edx, [edi + edx*2]
push eax
push ecx
push edx
call fcn.004a8f10
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4124e2
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4124d8
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4126c1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0048bd31
add esp, 8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
jae 0x412510
lea edx, [eax + 1]
cmp ecx, 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], edx
jbe 0x4124fd
mov ecx, dword [ebp - 0x40]
mov word [ecx + eax*2], 0x5f
mov word [ecx + eax*2 + 2], 0
jmp 0x412532
sub esp, 0xc
movzx eax, byte [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5f
mov dword [esp], 1
call fcn.0040e6f0
push 0x7fff
push 0
call fcn.004217f0
add esp, 8
push eax
lea esi, [ebp - 0x58]
push esi
call fcn.00421060
add esp, 8
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 7
mov ecx, esi
jbe 0x41255c
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov esi, edi
sub esi, edx
cmp esi, eax
jae 0x412590
sub esp, 0x10
movzx edx, byte [ebp - 0x5c]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.0040ef20
jmp 0x4125b7
lea esi, [edx + eax]
cmp edi, 7
lea edi, [ebp - 0x40]
mov dword [ebp - 0x30], esi
jbe 0x4125a1
mov edi, dword [ebp - 0x40]
add eax, eax
lea edx, [edi + edx*2]
push eax
push ecx
push edx
call fcn.004a8f10
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4125f2
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4125e8
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4126c1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0048bd31
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 7
lea edx, [ebp - 0x40]
jbe 0x412601
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
push eax
push edx
lea edi, [ebp - 0x58]
push edi
call fcn.00410cd0
lea esi, [ebp - 0x28]
mov ecx, esi
push edi
call fcn.0040fb10
mov ecx, edi
call fcn.0040fa30
cmp dword [ebp - 0x14], 7
jbe 0x41262a
mov esi, dword [ebp - 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412650
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa90
mov esi, 1
jmp 0x412652
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x412689
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x41267f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4126c1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0048bd31
add esp, 8
test esi, esi
jne 0x41269b
inc ebx
cmp ebx, 0x31
jbe 0x4123c0
xor ebx, ebx
jmp 0x41269d
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0040fa30
lea ecx, [ebp - 0x68]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004b5789
int3