Function at 0x405f60
Capabilities:
Create directory
Get file attributes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c997d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1218
call fcn.0049e5e0
mov eax, dword [0x4f2480]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1228], edx
cmp dword [ecx + 0x14], 0xf
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x121c], edi
mov dword [ebp - 0x1224], eax
jbe 0x405fc5
mov ecx, dword [ecx]
push ecx
call fcn.00480f60
mov esi, eax
add esp, 4
mov dword [ebp - 0x1214], esi
test esi, esi
je 0x4069f7
push esi
call fcn.00480e50
add esp, 4
test eax, eax
jne 0x4069ee
mov edx, edi
lea ecx, [ebp - 0x11c0]
call fcn.00405d80
cmp dword [eax + 0x14], 7
jbe 0x406004
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x11ac]
mov edi, eax
cmp ecx, 7
jbe 0x40604d
mov edx, dword [ebp - 0x11c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406043
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a17
push ecx
push edx
call fcn.0049d99f
add esp, 8
cmp edi, 0xffffffff
jne 0x4060e0
mov ecx, dword [ebp - 0x121c]
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x406066
mov eax, dword [ecx]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov dword [ebp - 0x1220], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049da05
mov ecx, dword [ebp - 0x121c]
add esp, 4
mov edi, eax
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x4060ab
mov eax, dword [ecx]
push dword [ebp - 0x1220]
push edi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4060d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.0049da00
add esp, 4
nop
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x1210]
push eax
push esi
call fcn.00480d90
add esp, 0x20
test eax, eax
jne 0x4069ee
xorps xmm0, xmm0
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114c], eax
movups xmmword [ebp - 0x1160], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406130
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1160]
call fcn.0041dad0
mov edx, dword [ebp - 0x121c]
mov eax, closesocket
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x406a21
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x406176
mov eax, dword [edx]
push 1
push 0x4e79a0
push ecx
push eax
push ecx
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x1190]
call fcn.0041f0f0
lea eax, [ebp - 0x1160]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1190]
push eax
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x1130]
call fcn.0041ef00
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x117c]
cmp ecx, 0xf
jbe 0x4061f2
mov edx, dword [ebp - 0x1190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x114c]
cmp ecx, 0xf
jbe 0x406230
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406226
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edx
call fcn.0049d99f
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1198], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x1194], 0
movups xmmword [ebp - 0x11a8], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406257
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x11a8]
call fcn.0041dad0
mov edi, dword [ebp - 0x1224]
lea eax, [ebp - 0x11a8]
cmp edi, eax
je 0x4062db
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x4062b6
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4062ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
mov eax, edx
push ecx
push eax
call fcn.0049d99f
add esp, 8
movups xmm0, xmmword [ebp - 0x11a8]
mov ecx, 0xf
mov byte [ebp - 0x11a8], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1198]
movq qword [edi + 0x10], xmm0
jmp 0x4062e1
mov ecx, dword [ebp - 0x1194]
cmp ecx, 0xf
jbe 0x406315
mov edx, dword [ebp - 0x11a8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40630b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edx
call fcn.0049d99f
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1168], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x1164], 0
movups xmmword [ebp - 0x1178], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406340
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1178]
call fcn.0041dad0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1178]
cmp dword [ebp - 0x1164], 0xf
mov edi, dword [ebp - 0x1178]
mov eax, dword [ebp - 0x1168]
cmova ecx, edi
mov dword [ebp - 0x1218], edi
cmp byte [ecx + eax - 1], 0x2f
jne 0x40659b
xorps xmm0, xmm0
mov dword [ebp - 0x1180], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x117c], 0
movups xmmword [ebp - 0x1190], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063b4
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1190]
call fcn.0041dad0
mov edx, dword [ebp - 0x121c]
mov eax, closesocket
mov byte [ebp - 4], 6
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x406a21
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x4063f7
mov eax, dword [edx]
push 1
push 0x4e79a0
push ecx
push eax
push ecx
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x11c0]
call fcn.0041f0f0
lea eax, [ebp - 0x1190]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x11c0]
push eax
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x1160]
call fcn.0041ef00
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x11ac]
cmp ecx, 0xf
jbe 0x406473
mov edx, dword [ebp - 0x11c0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406469
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x117c]
cmp ecx, 0xf
jbe 0x4064b1
mov edx, dword [ebp - 0x1190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4064a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
push ecx
push edx
call fcn.0049d99f
add esp, 8
lea ecx, [ebp - 0x1160]
call fcn.00405ce0
test al, al
je 0x4068ce
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x114c]
cmp ecx, 0xf
jbe 0x406502
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4064f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1164]
mov dword [ebp - 0x1150], 0
mov dword [ebp - 0x114c], 0xf
mov byte [ebp - 0x1160], 0
cmp eax, 0xf
jbe 0x406557
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40654d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
push ecx
push edi
call fcn.0049d99f
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x4068ad
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4068a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
jmp 0x4068a3
mov ecx, dword [ebp - 0x1228]
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x4065ab
mov eax, dword [ecx]
push eax
push esi
call fcn.004813c0
add esp, 8
test eax, eax
jne 0x40697b
mov esi, dword [ebp - 0x111c]
lea edx, [ebp - 0x1130]
mov eax, dword [ebp - 0x1120]
cmp esi, 0xf
cmova edx, dword [ebp - 0x1130]
test eax, eax
je 0x4065fe
lea ecx, [eax - 1]
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
add eax, edx
cmp byte [eax], 0x2f
je 0x4065fa
nop
cmp eax, edx
je 0x4065fe
dec eax
cmp byte [eax], 0x2f
jne 0x4065f0
sub eax, edx
jmp 0x406601
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x406747
cmp dword [ebp - 0x1120], eax
lea ecx, [ebp - 0x1130]
xorps xmm0, xmm0
mov dword [ebp - 0x1138], 0
cmovb eax, dword [ebp - 0x1120]
cmp esi, 0xf
push eax
cmova ecx, dword [ebp - 0x1130]
push ecx
lea ecx, [ebp - 0x1148]
mov dword [ebp - 0x1134], 0
movups xmmword [ebp - 0x1148], xmm0
call fcn.0041dad0
push 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1148]
cmp dword [ebp - 0x1134], 0xf
push 0
cmova eax, dword [ebp - 0x1148]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049da05
add esp, 4
mov dword [ebp - 0x1220], eax
cmp dword [ebp - 0x1134], 0xf
lea ecx, [ebp - 0x1148]
cmova ecx, dword [ebp - 0x1148]
push esi
mov esi, eax
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4066df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40690d
push esi
call fcn.0049da00
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x1134]
cmp ecx, 0xf
jbe 0x406726
mov edx, dword [ebp - 0x1148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40671c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a17
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov esi, dword [ebp - 0x111c]
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0xf
mov byte [ebp - 0x1148], 0
cmp esi, 0xf
lea eax, [ebp - 0x1130]
push 0x4e79a4
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004ad072
mov esi, eax
add esp, 8
test esi, esi
jne 0x4067c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406964
cmp dword [ebp - 0x111c], 0xf
lea eax, [ebp - 0x1130]
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004ad094
cmp dword [ebp - 0x111c], 0xf
lea eax, [ebp - 0x1130]
push 0x4e79a4
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004ad072
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406964
push 0x1000
lea eax, [ebp - 0x1118]
push eax
push dword [ebp - 0x1214]
call fcn.004819f0
add esp, 0xc
test eax, eax
jle 0x406815
mov edi, dword [ebp - 0x1214]
push esi
push 1
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.004ad3c6
push 0x1000
lea eax, [ebp - 0x1118]
push eax
push edi
call fcn.004819f0
add esp, 0x1c
test eax, eax
jg 0x4067e6
mov edi, dword [ebp - 0x1218]
push esi
call fcn.004ad525
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480d00
add esp, 8
test eax, eax
jne 0x40697b
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1164]
cmp eax, 0xf
jbe 0x40686c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x406862
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edi
call fcn.0049d99f
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x4068ad
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4068a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edx
call fcn.0049d99f
add esp, 8
push esi
call fcn.00480eb0
add esp, 4
test eax, eax
je 0x4060e0
push esi
call fcn.00480cc0
add esp, 4
mov al, 1
jmp 0x4069f9
push esi
call fcn.00480cc0
mov ecx, dword [ebp - 0x114c]
add esp, 4
cmp ecx, 0xf
jbe 0x406984
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406958
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a1c
jmp 0x406958
push esi
call fcn.0049da00
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480d00
push esi
call fcn.00480cc0
mov ecx, dword [ebp - 0x1134]
add esp, 0xc
cmp ecx, 0xf
jbe 0x406984
mov edx, dword [ebp - 0x1148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406958
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a17
push ecx
push edx
call fcn.0049d99f
add esp, 8
jmp 0x406984
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480d00
push esi
call fcn.00480cc0
add esp, 8
jmp 0x406984
push esi
call fcn.00480cc0
add esp, 4
mov eax, dword [ebp - 0x1164]
cmp eax, 0xf
jbe 0x4069b6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4069ac
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edi
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x4069f7
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4069e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a26
push ecx
push edx
call fcn.0049d99f
add esp, 8
jmp 0x4069f7
push esi
call fcn.00480cc0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a2f76
call fcn.004a2f76
call fcn.00401350
call fcn.004a2f76
int3