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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f16
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.004d31f0
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], 0xabaa9e83
xor ecx, ecx
mov dword [ebp - 0x1b], 0x9bffa6b7
mov dword [ebp - 0x17], 0xabb4acba
mov word [ebp - 0x13], 0xafb0
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f110
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 0x40f140
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 0x40f163
sub ecx, edx
lea eax, [ebp - 0x18c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00469030
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 0x40f1f4
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f1ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa74
push ecx
push edx
call fcn.004bafb1
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.0040b940
test al, al
je 0x40fa09
mov dword [ebp - 0x34], 0xabaa9e83
xor ecx, ecx
mov word [ebp - 0x30], 0xa6b7
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp + ecx - 0x34]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 6
jb 0x40f231
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f250
mov edi, closesocket
sub ecx, edx
mov edx, dword [ebp + 0x18]
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x40fa79
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.004680d0
mov esi, 3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x70], 0x10
cmovae ecx, dword [ebp - 0x84]
call fcn.0040b940
test al, al
jne 0x40f2d2
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 0x40f9f4
mov dword [ebp - 0x38], 0xbbb19683
xor ecx, ecx
mov dword [ebp - 0x34], 0xbbbaa7ba
mov word [ebp - 0x30], 0x9d9b
mov byte [ebp - 0x2e], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40f2f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f310
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40fa7e
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.004680d0
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], 0xb
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
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 0x40f526
mov dword [ebp - 0x38], 0xbbb19683
xor ecx, ecx
mov dword [ebp - 0x34], 0xbbbaa7ba
mov word [ebp - 0x30], 0x9d9b
mov byte [ebp - 0x2e], 0
nop
movzx eax, byte [ebp + ecx - 0x38]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x40f3a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f3c0
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40fa83
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.004680d0
or esi, 0x20
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
test al, al
jne 0x40f432
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 0x40f514
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x88], esp
mov ecx, esp
push eax
call fcn.0045fe50
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0x1b], 0xbbb19683
mov dword [ebp - 0x17], 0xbbbaa7ba
mov word [ebp - 0x13], 0x9d9b
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x1b]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xa
jb 0x40f470
sub esp, 0x18
lea eax, [ebp - 0x1b]
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.00464140
add esp, 4
mov byte [ebp - 4], 8
mov byte [ebp - 4], 6
mov cl, byte [ebp - 0xd]
call fcn.0040ea60
add esp, 0x30
test eax, eax
jne 0x40f4bb
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f514
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 0x40f4e0
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.0040b990
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], 0xbcb09383
xor ecx, ecx
mov dword [ebp - 0x1b], 0x8cffb3be
mov dword [ebp - 0x17], 0xbeadb0ab
mov word [ebp - 0x13], 0xbab8
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f550
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f570
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40fa88
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.004680d0
or esi, 0x10
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
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 0x40f7cd
mov dword [ebp - 0x1f], 0xbcb09383
xor ecx, ecx
mov dword [ebp - 0x1b], 0x8cffb3be
mov dword [ebp - 0x17], 0xbeadb0ab
mov word [ebp - 0x13], 0xbab8
mov byte [ebp - 0x11], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f600
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f620
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x74]
sub eax, edx
cmp eax, ecx
jb 0x40fa8d
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.004680d0
or esi, 0x80
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
test al, al
jne 0x40f695
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 0x40f7b8
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.0045fe50
mov byte [ebp - 4], 0xc
xor ecx, ecx
mov dword [ebp - 0x1f], 0xbcb09383
mov dword [ebp - 0x1b], 0x8cffb3be
mov dword [ebp - 0x17], 0xbeadb0ab
mov word [ebp - 0x13], 0xbab8
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x1f]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x40f6d0
sub esp, 0x18
lea eax, [ebp - 0x1f]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.00464140
add esp, 4
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov cl, byte [ebp - 0xd]
call fcn.0040ea60
add esp, 0x30
test eax, eax
jne 0x40f721
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f7b8
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 0x40f746
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.0040b990
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40f7a1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f797
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa92
push ecx
push edx
call fcn.004bafb1
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 [0x527b70]
xor ecx, ecx
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f7e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f800
sub ecx, edx
mov eax, edi
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp eax, ecx
jb 0x40fa97
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.004680d0
or esi, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
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 0x40f9f4
movaps xmm0, xmmword [0x527b70]
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.00461130
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f880
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f8a0
sub ecx, edx
mov edx, dword [ebp - 0x74]
sub edi, edx
cmp edi, ecx
jb 0x40fa9c
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.004680d0
or esi, 0x40
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x3c], 0x10
cmovae ecx, dword [ebp - 0x50]
call fcn.0040b940
test al, al
jne 0x40f910
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 0x40f9e2
sub esp, 0x18
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.0045fe50
mov byte [ebp - 4], 0x11
xor ecx, ecx
movaps xmm0, xmmword [0x527b70]
movups xmmword [ebp - 0x21], xmm0
mov byte [ebp - 0x11], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x21]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x21], al
inc ecx
cmp ecx, 0x10
jb 0x40f940
sub esp, 0x18
lea eax, [ebp - 0x21]
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x6c]
push eax
call fcn.00464140
add esp, 4
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x10
mov cl, byte [ebp - 0xd]
call fcn.0040ea60
add esp, 0x30
test eax, eax
jne 0x40f98e
mov eax, dword [ebp - 0x54]
mov byte [eax], 1
jmp 0x40f9e2
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 0x40f9b3
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.0040b990
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 0x40fa43
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faa1
push ecx
push edx
call fcn.004bafb1
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.004d64b0
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004d64b0
call fcn.00402210
call fcn.00402210
call fcn.004d64b0
int3