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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0846
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.004cacb0
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], 0xebeadec3
xor ecx, ecx
mov dword [ebp - 0x1b], 0xdbbfe6f7
mov dword [ebp - 0x17], 0xebf4ecfa
mov word [ebp - 0x13], 0xeff0
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40eb20
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 0x40eb50
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 0x40eb73
sub ecx, edx
lea eax, [ebp - 0x18c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00461260
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 0x40ec04
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ebfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f484
push ecx
push edx
call fcn.004b2a81
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.0040b8c0
test al, al
je 0x40f419
mov dword [ebp - 0x34], 0xebeadec3
xor ecx, ecx
mov word [ebp - 0x30], 0xe6f7
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp + ecx - 0x34]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 6
jb 0x40ec41
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec60
mov edi, closesocket
sub ecx, edx
mov edx, dword [ebp + 0x18]
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x40f489
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.00460300
mov esi, 3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x70], 0x10
cmovae ecx, dword [ebp - 0x84]
call fcn.0040b8c0
test al, al
jne 0x40ece2
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 0x40f404
mov dword [ebp - 0x38], 0xfbf1d6c3
xor ecx, ecx
mov dword [ebp - 0x34], 0xfbfae7fa
mov word [ebp - 0x30], 0xdddb
mov byte [ebp - 0x2e], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40ed00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ed20
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f48e
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.00460300
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], 0xb
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
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 0x40ef36
mov dword [ebp - 0x38], 0xfbf1d6c3
xor ecx, ecx
mov dword [ebp - 0x34], 0xfbfae7fa
mov word [ebp - 0x30], 0xdddb
mov byte [ebp - 0x2e], 0
nop
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40edb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40edd0
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40f493
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.00460300
or esi, 0x20
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
test al, al
jne 0x40ee42
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 0x40ef24
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x88], esp
mov ecx, esp
push eax
call fcn.00458190
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0x1b], 0xfbf1d6c3
mov dword [ebp - 0x17], 0xfbfae7fa
mov word [ebp - 0x13], 0xdddb
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x1b]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xa
jb 0x40ee80
sub esp, 0x18
lea eax, [ebp - 0x1b]
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.0045c3b0
add esp, 4
mov byte [ebp - 4], 8
mov byte [ebp - 4], 6
mov cl, byte [ebp - 0xd]
call fcn.0040e470
add esp, 0x30
test eax, eax
jne 0x40eecb
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40ef24
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 0x40eef0
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.0040b910
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], 0xfcf0d3c3
xor ecx, ecx
mov dword [ebp - 0x1b], 0xccbff3fe
mov dword [ebp - 0x17], 0xfeedf0eb
mov word [ebp - 0x13], 0xfaf8
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40ef60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ef80
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f498
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.00460300
or esi, 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
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 0x40f1dd
mov dword [ebp - 0x1f], 0xfcf0d3c3
xor ecx, ecx
mov dword [ebp - 0x1b], 0xccbff3fe
mov dword [ebp - 0x17], 0xfeedf0eb
mov word [ebp - 0x13], 0xfaf8
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f010
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f030
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40f49d
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.00460300
or esi, 0x80
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
test al, al
jne 0x40f0a5
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 0x40f1c8
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.00458190
mov byte [ebp - 4], 0xc
xor ecx, ecx
mov dword [ebp - 0x1f], 0xfcf0d3c3
mov dword [ebp - 0x1b], 0xccbff3fe
mov dword [ebp - 0x17], 0xfeedf0eb
mov word [ebp - 0x13], 0xfaf8
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f0e0
sub esp, 0x18
lea eax, [ebp - 0x1f]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.0045c3b0
add esp, 4
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov cl, byte [ebp - 0xd]
call fcn.0040e470
add esp, 0x30
test eax, eax
jne 0x40f131
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f1c8
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 0x40f156
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.0040b910
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40f1b1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f1a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f4a2
push ecx
push edx
call fcn.004b2a81
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 [0x51ea90]
xor ecx, ecx
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f1f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f210
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40f4a7
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.00460300
or esi, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
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 0x40f404
movaps xmm0, xmmword [0x51ea90]
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.00459470
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f290
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f2b0
sub ecx, edx
mov edx, dword [ebp - 0x74]
sub edi, edx
cmp edi, ecx
jb 0x40f4ac
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.00460300
or esi, 0x40
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b8c0
test al, al
jne 0x40f320
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 0x40f3f2
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.00458190
mov byte [ebp - 4], 0x11
xor ecx, ecx
movaps xmm0, xmmword [0x51ea90]
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f350
sub esp, 0x18
lea eax, [ebp - 0x21]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.0045c3b0
add esp, 4
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x10
mov cl, byte [ebp - 0xd]
call fcn.0040e470
add esp, 0x30
test eax, eax
jne 0x40f39e
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f3f2
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 0x40f3c3
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.0040b910
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 0x40f453
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f449
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f4b1
push ecx
push edx
call fcn.004b2a81
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.004cdf70
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004cdf70
call fcn.00402210
call fcn.00402210
call fcn.004cdf70
int3