Function at 0x40e300
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x444520
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e345
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e377
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x45c9e0
lea ecx, [esp + 0x38]
push 0x44d308
mov ebx, 1
push ecx
mov byte [esp + 0x38], bl
call fcn.004023f0
mov esi, dword [esp + 0x40]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e5e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e404
push esi
push 0x44dc50
call fcn.004045d0
lea eax, [edi - 0x10]
add esp, 8
mov dword [ebp + 4], 0x45c9e0
mov dword [ebp + 0x20], ebx
mov byte [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40e613
mov esi, dword [esp + 0x34]
cmp dword [esi - 0xc], 0
jl 0x40e589
push 0x44dd2c
push esi
call fcn.0042c6d1
add esp, 8
test eax, eax
je 0x40e589
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40e589
cmp dword [esi - 0xc], 0
jge 0x40e43c
or edi, 0xffffffff
jmp 0x40e459
push 0x44dd2c
push esi
call fcn.0042c6d1
add esp, 8
test eax, eax
jne 0x40e453
or edi, 0xffffffff
jmp 0x40e459
sub eax, esi
sar eax, 1
mov edi, eax
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.0040df70
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401b80
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
sub eax, edi
sub eax, ebx
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040def0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call fcn.00402160
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e522
push esi
push 0x44dc50
call fcn.004045d0
add esp, 8
jmp 0x40e400
cmp eax, 3
jne 0x40e400
push esi
push 0x44dd30
call fcn.004045d0
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e55a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e645
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00401b80
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e5f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e5bd
push edi
push 0x44dc50
jmp 0x40e5ec
cmp eax, 3
jne 0x40e5f4
push edi
push 0x44dd30
call fcn.004045d0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00402550
lea ecx, [esp + 0x34]
call fcn.00402550
xor eax, eax
jmp 0x40e645
push esi
push str.UnPackFromRes::SetOutDir___Creat_outDir___s_succes
call fcn.004045d0
add esp, 8
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 4], 0x45c9e0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e61f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4