Function at 0x40d7f0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x654]
sub esp, 0x654
push 0xffffffffffffffff
push 0x44adc1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462e60]
xor eax, ebp
mov dword [ebp + 0x650], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x664]
mov ecx, dword [ebp + 0x668]
mov esi, dword [ebp + 0x65c]
test esi, esi
mov edx, dword [ebp + 0x674]
mov edi, dword [ebp + 0x660]
mov ebx, dword [ebp + 0x670]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x66c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x678]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
je 0x40dae0
test edi, edi
je 0x40dae0
test eax, eax
je 0x40dae0
test ebx, ebx
je 0x40dae0
cmp byte [0x464310], 1
je 0x40dae0
push esi
lea edx, [ebp + 0x134]
push edx
mov ecx, edi
call fcn.004053b0
push esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404290
test al, al
je 0x40d9d3
sub esp, 0x1c
lea eax, [ebp + 0x134]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402150
mov ecx, dword [ebx + 0x10]
call fcn.004058c0
test eax, eax
jne 0x40d927
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [ebp + 0x118]
push edx
mov ecx, edi
call fcn.004053b0
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
mov ecx, dword [ebx + 0x10]
push eax
mov eax, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push edx
push eax
push esi
lea edx, [ebp + 0x118]
push edx
mov byte [ebp - 4], 1
call fcn.004067a0
lea ecx, [ebp + 0x118]
mov byte [ebp - 4], 0
call fcn.00401a60
test byte [esi + 0x2c], 1
je 0x40d970
lea eax, [ebp + 0x134]
push eax
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp + 0x118]
push edx
call fcn.00402270
mov eax, dword [ebp + 0x11c]
add esp, 0xc
cmp dword [ebp + 0x130], 0x10
jae 0x40d95c
lea eax, [ebp + 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp + 0x118]
call fcn.00401a60
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
add esi, 0x3c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], esi
mov edx, dword [esi + 4]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], edx
call fcn.00401420
test al, al
je 0x40da0a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x14]
push ebx
push eax
push ecx
push edx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004016d0
mov eax, dword [eax + 0x1c]
push eax
call fcn.0040d7f0
add esp, 0x20
test eax, eax
je 0x40dad5
lea ecx, [ebp - 0x1c]
call fcn.004011c0
jmp 0x40d981
cmp byte [esi + 0x34], 0
jne 0x40da0a
test byte [esi + 0x2c], 1
jne 0x40db92
cmp dword [ebp + 0x14c], 0x10
mov eax, dword [ebp + 0x138]
jae 0x40d9f8
lea eax, [ebp + 0x138]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00409a00
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40da1f
lea ecx, [ebp + 0x134]
call fcn.00401a60
mov eax, 1
jmp 0x40dae2
mov ecx, dword [ebp - 0x24]
cmp edi, dword [ecx]
jbe 0x40da44
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call fcn.00415b52
mov eax, dword [ebp - 0x24]
push edi
mov dword [eax], edi
call fcn.00415b57
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ecx], eax
cmp dword [ebp + 0x14c], 0x10
mov eax, dword [ebp + 0x138]
jae 0x40da59
lea eax, [ebp + 0x138]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp]
push edx
push edi
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004097c0
test al, al
je 0x40db72
mov edx, dword [esi + 0x2c]
push edx
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402560
test eax, eax
je 0x40db07
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.0040b090
test eax, eax
jne 0x40db07
cmp dword [ebp + 0x14c], 0x10
mov eax, dword [ebp + 0x138]
jae 0x40dab4
lea eax, [ebp + 0x138]
push eax
push 0x44e210
lea edx, [ebp + 0x150]
push edx
call fcn.00431a82
lea eax, [ebp + 0x150]
push eax
call fcn.0040eb60
add esp, 0x10
lea ecx, [ebp + 0x134]
call fcn.00401a60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x650]
xor ecx, ebp
call fcn.00431e6f
add ebp, 0x654
mov esp, ebp
pop ebp
ret
mov edi, 0x10
jmp 0x40dc4c
cmp dword [ebp + 0x14c], 0x10
mov eax, dword [ebp + 0x138]
jae 0x40db87
lea eax, [ebp + 0x138]
push eax
push 0x44e1c8
jmp 0x40daba
lea ecx, [ebp + 0x134]
push ecx
lea edx, [ebx + 0x14]
push edx
lea eax, [ebp + 0x118]
push eax
mov byte [ebp - 4], 4
call fcn.00402270
add esp, 0xc
mov eax, dword [ebp + 0x11c]
mov edi, 0x10
cmp dword [ebp + 0x130], edi
mov byte [ebp - 4], 5
jae 0x40dbcd
lea eax, [ebp + 0x11c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004026b0
cmp dword [ebp + 0x14c], edi
mov eax, dword [ebp + 0x138]
jae 0x40dbef
lea eax, [ebp + 0x138]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00409260
test eax, eax
jne 0x40dc41
cmp dword [ebp + 0x14c], edi
mov eax, dword [ebp + 0x138]
jae 0x40dc10
lea eax, [ebp + 0x138]
push eax
lea ecx, [ebp + 0x150]
push 0x44e1ac
push ecx
call fcn.00431a82
lea edx, [ebp + 0x150]
push edx
call fcn.0040eb60
add esp, 0x10
lea ecx, [ebp + 0x118]
call fcn.00401a60
jmp 0x40dad5
lea ecx, [ebp + 0x118]
call fcn.00401a60
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
mov ebx, dword [ebx + 0x10]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push 0
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
lea eax, [ebp + 0x134]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00406f60
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x1c]
add dword [eax], ecx
cmp dword [ebp + 0x14c], edi
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x138]
jae 0x40dc9f
lea eax, [ebp + 0x138]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040c960
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040c7d0
add esp, 0x10
lea ecx, [ebp + 0x134]
call fcn.00401a60
mov eax, 1
jmp 0x40dae2