Function at 0x4758a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605685
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call fcn.00483151
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x475b6e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x66d1c4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x475927
movzx eax, ax
push eax
call fcn.004100f0
jmp 0x475933
push 0
push 0x66d1c4
call fcn.00412520
mov dword [ebp - 4], 2
push 0x5c
push dword [esi]
call fcn.005cf434
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x475b66
sub eax, dword [esi]
sar eax, 1
cmp eax, edi
je 0x475b66
lea edx, [eax + 1]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004378d0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
push 0x670d54
push eax
call fcn.00436ec0
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea edx, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp edx, ebx
je 0x4759e8
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4759d9
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4759d9
push edx
call fcn.004123f0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4759d1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x4759e8
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00412520
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475a02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475a20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push esi
call fcn.005cf434
add esp, 8
test eax, eax
je 0x475ac3
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x475ac3
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410240
mov byte [ebp - 4], 5
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x475aa5
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x475a96
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x475a96
push edx
call fcn.004123f0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x475a8e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x475aa5
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00412520
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475ac3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
call fcn.0042cf30
add esp, 0xc
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x475b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, dword [ebp - 0x28]
jne 0x475b06
lea eax, [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004123f0
mov edx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475b33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x475b48
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ca888
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
jmp 0x475ac6
push 0x80004005
call fcn.0040c5c0
int3