Function at 0x40dd80
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53a67a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x18]
call fcn.00402640
mov dword [esp + 0x80], 0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x40de14
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x40dde2
cmp eax, esi
je 0x40de14
sub eax, 2
cmp word [eax], 0x5c
jne 0x40ddd5
sub eax, esi
sar eax, 1
test eax, eax
jle 0x40de14
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x40de14
cmp ebx, 3
jne 0x40de01
cmp word [esi + 2], 0x3a
je 0x40df95
mov ecx, eax
lea edi, [esp + 0x18]
call fcn.0040dca0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x18]
lea eax, [esp + 0x24]
call fcn.004026a0
mov byte [esp + 0x80], 1
mov ebp, ebx
jmp 0x40de30
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40df4c
test ebx, ebx
je 0x40e0b6
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x40de77
cmp eax, esi
je 0x40e0b6
sub eax, 2
cmp word [eax], 0x5c
jne 0x40de66
sub eax, esi
sar eax, 1
mov ebp, eax
js 0x40e0b6
test ebp, ebp
je 0x40e0b6
cmp word [esi + ebp*2 - 2], 0x3a
je 0x40dfdd
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
lea edx, [esp + 0x1c]
call fcn.004028a0
mov ebx, eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x80], 3
lea eax, [esp + 0x18]
cmp ebx, eax
je 0x40df2e
xor ecx, ecx
mov word [esi], cx
mov edi, dword [ebx + 4]
inc edi
mov dword [esp + 0x1c], 0
cmp edi, dword [esp + 0x20]
je 0x40df12
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004104fc
add esp, 4
cmp dword [esp + 0x20], 0
mov ebx, eax
jle 0x40deff
push esi
call fcn.00410507
add esp, 4
mov esi, ebx
mov dword [esp + 0x18], esi
xor eax, eax
mov word [ebx], ax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
mov edx, dword [ebx]
mov ecx, esi
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40df16
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x80], 1
mov edx, dword [esp + 0x30]
push edx
call fcn.00410507
mov ebx, dword [esp + 0x20]
add esp, 4
jmp 0x40de30
lea eax, [esp + 0x3c]
push eax
call fcn.00401ec0
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0040e200
test al, al
jne 0x40dfbf
mov byte [esp + 0x80], 1
lea edx, [esp + 0x3c]
push edx
call fcn.00401f20
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x24]
push eax
call fcn.00410507
add esp, 4
mov dword [esp + 0x80], 0xffffffff
push esi
call fcn.00410507
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ecx, dword [esp + 0x5c]
shr ecx, 4
test cl, 1
jne 0x40dfef
mov byte [esp + 0x80], 1
lea edx, [esp + 0x3c]
push edx
call fcn.00401f20
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x24]
push eax
jmp 0x40e0c3
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401f20
lea edi, [esp + 0x24]
lea eax, [esp + 0x18]
call fcn.00402760
mov edi, dword [esp + 0x1c]
cmp ebp, edi
mov esi, dword [esp + 0x18]
jge 0x40e0a4
movzx ecx, word [esi + ebp*2 + 2]
lea edx, [esi + ebp*2 + 2]
mov eax, edx
cmp cx, 0x5c
je 0x40e044
movzx ecx, cx
test cx, cx
je 0x40e054
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x40e032
sub eax, edx
sar eax, 1
test eax, eax
jl 0x40e054
lea ebp, [eax + ebp + 1]
test ebp, ebp
jge 0x40e056
mov ebp, edi
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
lea edx, [esp + 0x1c]
call fcn.004028a0
mov byte [esp + 0x80], 4
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
test al, al
sete bl
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.00410507
add esp, 4
test bl, bl
jne 0x40e0b6
cmp ebp, edi
jl 0x40e01e
mov byte [esp + 0x80], 0
mov edx, dword [esp + 0x24]
push edx
jmp 0x40df8d
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00410507
add esp, 4
mov dword [esp + 0x80], 0xffffffff
push esi
call fcn.00410507
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret