Function at 0x405ee0
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 0x4c966d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1218
call fcn.0049df10
mov eax, dword [0x4f3480]
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 0x405f45
mov ecx, dword [ecx]
push ecx
call fcn.00480af0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1214], esi
test esi, esi
je 0x406977
push esi
call fcn.004809e0
add esp, 4
test eax, eax
jne 0x40696e
mov edx, edi
lea ecx, [ebp - 0x11c0]
call fcn.00405d10
cmp dword [eax + 0x14], 7
jbe 0x405f84
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 0x405fcd
mov edx, dword [ebp - 0x11c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405fc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406997
push ecx
push edx
call fcn.0049d2cb
add esp, 8
cmp edi, 0xffffffff
jne 0x406060
mov ecx, dword [ebp - 0x121c]
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x405fe6
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.0049d331
mov ecx, dword [ebp - 0x121c]
add esp, 4
mov edi, eax
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x40602b
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 0x406055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.0049d32c
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.00480920
add esp, 0x20
test eax, eax
jne 0x40696e
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 0x4060b0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1160]
call fcn.0041d980
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 0x4069a1
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x4060f6
mov eax, dword [edx]
push 1
push 0x4e79f0
push ecx
push eax
push ecx
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x1190]
call fcn.0041ef20
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.0041ed30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x117c]
cmp ecx, 0xf
jbe 0x406172
mov edx, dword [ebp - 0x1190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406168
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edx
call fcn.0049d2cb
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x114c]
cmp ecx, 0xf
jbe 0x4061b0
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edx
call fcn.0049d2cb
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 0x4061d7
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x11a8]
call fcn.0041d980
mov edi, dword [ebp - 0x1224]
lea eax, [ebp - 0x11a8]
cmp edi, eax
je 0x40625b
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x406236
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x40622c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
mov eax, edx
push ecx
push eax
call fcn.0049d2cb
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 0x406261
mov ecx, dword [ebp - 0x1194]
cmp ecx, 0xf
jbe 0x406295
mov edx, dword [ebp - 0x11a8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40628b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edx
call fcn.0049d2cb
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 0x4062c0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1178]
call fcn.0041d980
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 0x40651b
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 0x406334
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x1190]
call fcn.0041d980
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 0x4069a1
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x406377
mov eax, dword [edx]
push 1
push 0x4e79f0
push ecx
push eax
push ecx
push dword [ebp - 0x1218]
lea ecx, [ebp - 0x11c0]
call fcn.0041ef20
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.0041ed30
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x11ac]
cmp ecx, 0xf
jbe 0x4063f3
mov edx, dword [ebp - 0x11c0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4063e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
push ecx
push edx
call fcn.0049d2cb
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x117c]
cmp ecx, 0xf
jbe 0x406431
mov edx, dword [ebp - 0x1190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406427
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
push ecx
push edx
call fcn.0049d2cb
add esp, 8
lea ecx, [ebp - 0x1160]
call fcn.00405c70
test al, al
je 0x40684e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x114c]
cmp ecx, 0xf
jbe 0x406482
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406478
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
push ecx
push edx
call fcn.0049d2cb
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 0x4064d7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4064cd
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
push ecx
push edi
call fcn.0049d2cb
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x40682d
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406823
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
jmp 0x406823
mov ecx, dword [ebp - 0x1228]
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x40652b
mov eax, dword [ecx]
push eax
push esi
call fcn.00480f50
add esp, 8
test eax, eax
jne 0x4068fb
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 0x40657e
lea ecx, [eax - 1]
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
add eax, edx
cmp byte [eax], 0x2f
je 0x40657a
nop
cmp eax, edx
je 0x40657e
dec eax
cmp byte [eax], 0x2f
jne 0x406570
sub eax, edx
jmp 0x406581
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x4066c7
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.0041d980
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.0049d331
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 0x40665f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40688d
push esi
call fcn.0049d32c
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x1134]
cmp ecx, 0xf
jbe 0x4066a6
mov edx, dword [ebp - 0x1148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40669c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406997
push ecx
push edx
call fcn.0049d2cb
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 0x4e79f4
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004acb5d
mov esi, eax
add esp, 8
test esi, esi
jne 0x406742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4068e4
cmp dword [ebp - 0x111c], 0xf
lea eax, [ebp - 0x1130]
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004acb7f
cmp dword [ebp - 0x111c], 0xf
lea eax, [ebp - 0x1130]
push 0x4e79f4
cmova eax, dword [ebp - 0x1130]
push eax
call fcn.004acb5d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4068e4
push 0x1000
lea eax, [ebp - 0x1118]
push eax
push dword [ebp - 0x1214]
call fcn.00481580
add esp, 0xc
test eax, eax
jle 0x406795
mov edi, dword [ebp - 0x1214]
push esi
push 1
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.004aceae
push 0x1000
lea eax, [ebp - 0x1118]
push eax
push edi
call fcn.00481580
add esp, 0x1c
test eax, eax
jg 0x406766
mov edi, dword [ebp - 0x1218]
push esi
call fcn.004ad00d
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480890
add esp, 8
test eax, eax
jne 0x4068fb
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1164]
cmp eax, 0xf
jbe 0x4067ec
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4067e2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edi
call fcn.0049d2cb
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x40682d
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406823
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edx
call fcn.0049d2cb
add esp, 8
push esi
call fcn.00480a40
add esp, 4
test eax, eax
je 0x406060
push esi
call fcn.00480850
add esp, 4
mov al, 1
jmp 0x406979
push esi
call fcn.00480850
mov ecx, dword [ebp - 0x114c]
add esp, 4
cmp ecx, 0xf
jbe 0x406904
mov edx, dword [ebp - 0x1160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4068d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699c
jmp 0x4068d8
push esi
call fcn.0049d32c
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480890
push esi
call fcn.00480850
mov ecx, dword [ebp - 0x1134]
add esp, 0xc
cmp ecx, 0xf
jbe 0x406904
mov edx, dword [ebp - 0x1148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4068d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406997
push ecx
push edx
call fcn.0049d2cb
add esp, 8
jmp 0x406904
mov esi, dword [ebp - 0x1214]
push esi
call fcn.00480890
push esi
call fcn.00480850
add esp, 8
jmp 0x406904
push esi
call fcn.00480850
add esp, 4
mov eax, dword [ebp - 0x1164]
cmp eax, 0xf
jbe 0x406936
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40692c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edi
call fcn.0049d2cb
add esp, 8
mov ecx, dword [ebp - 0x111c]
cmp ecx, 0xf
jbe 0x406977
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406962
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069a6
push ecx
push edx
call fcn.0049d2cb
add esp, 8
jmp 0x406977
push esi
call fcn.00480850
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.0049d2bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a2926
call fcn.004a2926
call fcn.00401350
call fcn.004a2926
int3