Function at 0x40b390
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x44a2c5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x45f050]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ecx, edi
mov dword [ebp - 0x10], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b3e0
sub ecx, edx
mov eax, 0x7fffffff
mov edx, dword [0x45fc08]
sub eax, edx
cmp eax, ecx
jb 0x40b697
cmp dword [0x45fc0c], 0x10
mov eax, 0x45fbf8
push ecx
cmovae eax, dword [0x45fbf8]
push edi
push edx
push eax
push ecx
push dword [ebp]
lea ecx, [ebp + 4]
call fcn.00407050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
push ecx
cmovae eax, dword [ebp + 4]
mov ecx, esi
push eax
call fcn.0040cda0
cmp eax, dword [ebp + 0x128]
je 0x40b5a7
push 3
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x458b4c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00405030
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040ac90
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x40b492
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b4b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405030
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0040a800
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40b504
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b4fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b69c
push edx
push ecx
call fcn.00422cc9
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x40b54a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b540
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b69c
push edx
push ecx
call fcn.00422cc9
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x40b590
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b586
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b69c
push edx
push ecx
call fcn.00422cc9
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40b5a0
push eax
call fcn.0042b184
add esp, 4
xor bl, bl
jmp 0x40b642
lea eax, [edi + 3]
push 0x2f
push eax
call fcn.00424140
mov esi, eax
add esp, 8
test esi, esi
je 0x40b604
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x100
lea eax, [ebp + 0x1c]
push 0
push eax
call fcn.00424870
mov eax, esi
sub eax, edi
push eax
push edi
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.0042db60
add esp, 0x1c
lea eax, [ebp + 0x1c]
push 0
push eax
call ebx
lea eax, [esi + 1]
push 0x2f
push eax
call fcn.00424140
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b5c1
push 0x458b50
lea eax, [ebp]
push edi
push eax
call fcn.0042b13d
push dword [ebp]
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x128]
push 1
push esi
call fcn.0042c487
push dword [ebp]
call fcn.0042be88
push dword [ebp]
call fcn.0042712a
push esi
call fcn.0042b184
add esp, 0x28
mov bl, 1
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
jb 0x40b672
mov ecx, dword [ebp + 4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b668
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6a1
push edx
push ecx
call fcn.00422cc9
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00422c86
lea esp, [ebp + 0x120]
pop ebp
ret
call fcn.00401db0
call fcn.0042b7e2
call fcn.0042b7e2
int3