Function at 0x40eb10
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push esi
push edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18c]
push 0x104
push 0
push eax
call fcn.004d1ee0
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x1f], 0x3e3f0b16
xor ecx, ecx
mov dword [ebp - 0x1b], 0xe6a3322
mov dword [ebp - 0x17], 0x3e21392f
mov word [ebp - 0x13], 0x3a25
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40eb90
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ebc0
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.00402aa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ebe3
sub ecx, edx
lea eax, [ebp - 0x18c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00468490
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
mov esi, 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x40ec74
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f4f4
push ecx
push edx
call fcn.004b9cb1
add esp, 8
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x40], 0
cmovae ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.0040b930
test al, al
je 0x40f489
mov dword [ebp - 0x34], 0x3e3f0b16
xor ecx, ecx
mov word [ebp - 0x30], 0x3322
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp + ecx - 0x34]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 6
jb 0x40ecb1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ecd0
mov edi, closesocket
sub ecx, edx
mov edx, dword [ebp + 0x18]
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x40f4f9
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x84]
call fcn.00467530
mov esi, 3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x70], 0x10
cmovae ecx, dword [ebp - 0x84]
call fcn.0040b930
test al, al
jne 0x40ed52
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push 0
cmovae eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f474
mov dword [ebp - 0x38], 0x2e240316
xor ecx, ecx
mov dword [ebp - 0x34], 0x2e2f322f
mov word [ebp - 0x30], 0x80e
mov byte [ebp - 0x2e], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40ed70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ed90
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f4fe
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push ecx
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.00467530
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], 0xb
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
mov esi, 0xb
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], esi
and esi, 0xfffffff7
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
cmp byte [ebp - 0xd], 0
je 0x40efa6
mov dword [ebp - 0x38], 0x2e240316
xor ecx, ecx
mov dword [ebp - 0x34], 0x2e2f322f
mov word [ebp - 0x30], 0x80e
mov byte [ebp - 0x2e], 0
nop
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40ee20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ee40
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40f503
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push ecx
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.00467530
or esi, 0x20
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
test al, al
jne 0x40eeb2
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40ef94
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x88], esp
mov ecx, esp
push eax
call fcn.0045f3c0
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0x1b], 0x2e240316
mov dword [ebp - 0x17], 0x2e2f322f
mov word [ebp - 0x13], 0x80e
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x1b]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xa
jb 0x40eef0
sub esp, 0x18
lea eax, [ebp - 0x1b]
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.004635e0
add esp, 4
mov byte [ebp - 4], 8
mov byte [ebp - 4], 6
mov cl, byte [ebp - 0xd]
call fcn.0040e4e0
add esp, 0x30
test eax, eax
jne 0x40ef3b
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40ef94
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x50]
mov ecx, edx
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ef60
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402aa0
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b980
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00402890
mov edi, closesocket
and esi, 0xffffffdf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
mov dword [ebp - 0x1f], 0x29250616
xor ecx, ecx
mov dword [ebp - 0x1b], 0x196a262b
mov dword [ebp - 0x17], 0x2b38253e
mov word [ebp - 0x13], 0x2f2d
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40efd0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eff0
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f508
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push ecx
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1f]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x31]
lea ecx, [ebp - 0x50]
call fcn.00467530
or esi, 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
and esi, 0xffffffef
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
cmp byte [ebp - 0xd], 0
je 0x40f24d
mov dword [ebp - 0x1f], 0x29250616
xor ecx, ecx
mov dword [ebp - 0x1b], 0x196a262b
mov dword [ebp - 0x17], 0x2b38253e
mov word [ebp - 0x13], 0x2f2d
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f080
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f0a0
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40f50d
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push ecx
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x1f]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x31]
lea ecx, [ebp - 0x50]
call fcn.00467530
or esi, 0x80
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
test al, al
jne 0x40f115
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f238
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.0045f3c0
mov byte [ebp - 4], 0xc
xor ecx, ecx
mov dword [ebp - 0x1f], 0x29250616
mov dword [ebp - 0x1b], 0x196a262b
mov dword [ebp - 0x17], 0x2b38253e
mov word [ebp - 0x13], 0x2f2d
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f150
sub esp, 0x18
lea eax, [ebp - 0x1f]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.004635e0
add esp, 4
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov cl, byte [ebp - 0xd]
call fcn.0040e4e0
add esp, 0x30
test eax, eax
jne 0x40f1a1
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f238
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x50]
mov ecx, edx
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f1c6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402aa0
mov byte [ebp - 4], 0xe
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b980
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40f221
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f217
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f512
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov dword [ebp - 0x18], 0
mov edi, closesocket
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
and esi, 0xffffff7f
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
movaps xmm0, xmmword [0x526750]
xor ecx, ecx
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f260
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f280
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f517
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push ecx
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x21]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x31]
lea ecx, [ebp - 0x50]
call fcn.00467530
or esi, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
and esi, 0xfffffffb
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
cmp byte [ebp - 0xd], 0
je 0x40f474
movaps xmm0, xmmword [0x526750]
xor ecx, ecx
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f300
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f320
sub ecx, edx
mov edx, dword [ebp - 0x74]
sub edi, edx
cmp edi, ecx
jb 0x40f51c
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push ecx
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x21]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x31]
lea ecx, [ebp - 0x50]
call fcn.00467530
or esi, 0x40
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b930
test al, al
jne 0x40f390
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f462
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.0045f3c0
mov byte [ebp - 4], 0x11
xor ecx, ecx
movaps xmm0, xmmword [0x526750]
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f3c0
sub esp, 0x18
lea eax, [ebp - 0x21]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.004635e0
add esp, 4
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x10
mov cl, byte [ebp - 0xd]
call fcn.0040e4e0
add esp, 0x30
test eax, eax
jne 0x40f40e
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f462
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x50]
mov ecx, edx
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f433
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402aa0
mov byte [ebp - 4], 0x13
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b980
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00402890
and esi, 0xffffffbf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402890
and esi, 0xfffffffd
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00402890
and esi, 0xfffffffe
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x10
jb 0x40f4c3
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f4b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f521
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402890
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004d51a0
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004d51a0
call fcn.00402210
call fcn.00402210
call fcn.004d51a0
int3