Function at 0x410ac0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425bf3
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0x30], eax
call fcn.00412da0
mov edx, dword [0x433174]
add esp, 4
mov dword [esp + 0x10], edx
test esi, esi
je 0x410b76
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x410b3e
movzx ecx, si
lea edx, [esp + 0x10]
call fcn.00401f90
jmp 0x410b76
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x410b76
mov ecx, edi
lea edx, [esp + 0x10]
call fcn.00402150
test eax, eax
je 0x410b76
mov ecx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
push esi
add eax, 2
push eax
push ecx
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea esi, [esp + 0x4c]
mov dword [esp + 0x1f4], 0
call fcn.004023e0
add esp, 4
mov ebx, 0x10
mov byte [esp + 0x1f0], 1
cmp dword [eax + 0x18], ebx
jb 0x410ba9
mov eax, dword [eax + 4]
jmp 0x410bac
add eax, 4
mov ecx, 8
lea esi, [esp + 0xbc]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.004118d0
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp dword [esp + 0x60], ebx
jb 0x410bf4
mov eax, dword [esp + 0x4c]
push eax
call fcn.004178bc
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
mov byte [esp + 0x1f0], 4
mov esi, dword [esp + 0x10]
lea ecx, [esi - 0xc]
cmp ecx, 0x433164
je 0x410c33
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410c33
push esi
call fcn.00417bee
add esp, 4
test edi, edi
je 0x410fb9
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], 0
test eax, eax
jb 0x410c69
ja 0x410cc4
test ecx, ecx
ja 0x410cc4
mov dword [esp + 0x1f0], 0xffffffff
cmp dword [edi + 0xe0], 0
je 0x410c82
call fcn.004128f0
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
push ecx
push edx
call eax
push edi
call fcn.0041886f
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.004178c7
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
push pe_nt_image_headers32
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x6c]
push 0
push ecx
mov eax, edi
call fcn.00411d80
add esp, 0x10
test eax, eax
jne 0x410f8a
mov al, byte [esp + 0xdc]
lea edx, [esp + 0xdc]
mov ecx, edx
test al, al
je 0x410d1b
mov edi, edi
cmp al, 0x2f
je 0x410d08
cmp al, 0x5c
jne 0x410d0b
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410d00
cmp byte [edx], al
jne 0x410e77
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xe0]
call fcn.004022e0
add esp, 4
mov byte [esp + 0x1f0], 5
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
lea edx, [esp + 0x24]
lea ecx, [eax - 1]
push edx
lea ebx, [esp + 0x14]
call fcn.00406470
mov edi, eax
mov eax, ebx
mov byte [esp + 0x1f0], 6
call fcn.00406520
mov byte [esp + 0x1f0], 5
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x410d95
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410d95
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x18]
call fcn.00401f30
push 0x42bcd4
push 0x42bcd4
mov byte [esp + 0x1f8], 7
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.004067e0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx - 8]
push ebx
call fcn.004067e0
mov esi, dword [esp + 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esi - 0xc]
cmp edx, 0x433164
je 0x410e01
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e01
push esi
call fcn.00417bee
add esp, 4
lea eax, [ebx - 0xc]
mov byte [esp + 0x1f0], 4
cmp eax, 0x433164
je 0x410e2a
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e2a
push esi
call fcn.00417bee
add esp, 4
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
inc ebx
mov eax, ebx
cdq
cmp edx, edi
ja 0x410e53
jb 0x410e46
cmp eax, dword [esp + 0x34]
jae 0x410e53
call fcn.004121b0
test eax, eax
jne 0x410fc0
mov eax, ebx
mov dword [esp + 0x28], eax
cdq
cmp edx, edi
jb 0x410cc0
ja 0x410e6e
cmp eax, dword [esp + 0x34]
jb 0x410cc0
mov edi, dword [esp + 0x14]
jmp 0x410c69
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
call fcn.00401f30
mov ebx, 0x42d5e4
lea eax, [esp + 0x30]
mov byte [esp + 0x1f0], 8
call fcn.004062a0
mov byte [esp + 0x1f0], 9
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx - 8]
push ebx
lea edi, [esp + 0x20]
call fcn.004067e0
lea ecx, [ebx - 0xc]
mov byte [esp + 0x1f0], 8
cmp ecx, 0x433164
je 0x410edd
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410edd
push esi
call fcn.00417bee
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xe0]
call fcn.004022e0
add esp, 4
mov byte [esp + 0x1f0], 0xa
mov eax, dword [eax]
mov esi, dword [eax - 8]
push eax
lea edi, [esp + 0x20]
call fcn.004067e0
mov byte [esp + 0x1f0], 8
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x410f3d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f3d
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x68]
push edx
push esi
call fcn.00410950
lea eax, [ebx - 0xc]
add esp, 0xc
mov byte [esp + 0x1f0], 4
cmp eax, 0x433164
je 0x410e2e
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e2e
push ebx
call fcn.00417bee
add esp, 4
jmp 0x410e2e
mov dword [esp + 0x1f0], 0xffffffff
cmp dword [edi + 0xe0], 0
je 0x410fa3
call fcn.004128f0
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
push ecx
push edx
call eax
push edi
call fcn.0041886f
add esp, 0xc
xor al, al
jmp 0x410c9a
mov dword [esp + 0x1f0], 0xffffffff
cmp dword [esi + 0xe0], 0
je 0x410fdb
mov edi, esi
call fcn.004128f0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
push ecx
push edx
call eax
push esi
call fcn.0041886f
add esp, 0xc
xor al, al
jmp 0x410c9a