Function at 0x4305e0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x17c
mov ebx, dword [ebp + 8]
movzx eax, byte [0x5511c0]
test al, al
jne 0x43060e
mov dword [esp], 0x5511c0
call fcn.004eded0
test eax, eax
jne 0x430bc0
movzx eax, byte [0x5511a0]
test al, al
je 0x4309f0
mov edx, dword [0x5511b0]
test edx, edx
mov eax, edx
je 0x430a60
mov ecx, dword [ebp + 0xc]
mov edi, 0x5511ac
jmp 0x430649
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x430655
cmp dword [eax + 0x10], ecx
jge 0x430640
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x430649
cmp edi, 0x5511ac
je 0x430666
cmp ecx, dword [edi + 0x10]
jge 0x4309d0
lea esi, [ebp - 0x120]
lea eax, [ebp + 0xc]
mov dword [esp], edi
mov ecx, 0x5511a8
mov dword [esp + 4], esi
mov dword [ebp - 0x120], eax
call fcn.0042e400
mov edi, dword [eax + 0x18]
sub esp, 8
test edi, edi
jne 0x43092d
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x5511d0]
test eax, eax
mov byte [edi], 0
je 0x430cc0
mov edx, dword [ebp + 0xc]
mov edi, 0x5511cc
jmp 0x4306c9
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x4306d5
cmp dword [eax + 0x10], edx
jge 0x4306c0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4306c9
cmp edi, 0x5511cc
je 0x4306e2
cmp edx, dword [edi + 0x10]
jge 0x43075c
mov dword [esp], 0x18
mov dword [ebp - 0x15c], edi
call fcn.004ed900
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x5511c8
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call fcn.004e1d00
sub esp, 8
test edx, edx
je 0x430ce0
cmp edx, 0x5511cc
je 0x430738
test eax, eax
je 0x430dc1
mov eax, 1
mov dword [esp + 0xc], 0x5511cc
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e88a0
add dword [0x5511dc], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x14
test eax, eax
je 0x430a70
call fcn.0042c430
mov esi, eax
lea edi, [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x138]
mov ecx, 0x6874
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.SHGetFolderPath_failed__error_id_is__lu
mov dword [esp + 0xc], 0x124
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x130], 0x57746547
mov dword [ebp - 0x12c], 0x6f646e69
mov dword [ebp - 0x128], 0x61507377
mov word [ebp - 0x124], cx
mov dword [ebp - 0x134], 0xe
mov byte [ebp - 0x122], 0
call fcn.0042ce70
mov eax, dword [ebp - 0x138]
cmp eax, edi
je 0x430823
mov dword [esp], eax
call fcn.004ed8c0
lea eax, [ebx + 8]
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 0x5511ac
je 0x43084d
cmp ecx, dword [edx + 0x10]
jge 0x430872
lea eax, [ebp + 0xc]
mov dword [esp], edx
mov ecx, 0x5511a8
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
call fcn.0042e400
sub esp, 8
mov edx, eax
mov ecx, dword [ebp - 0x138]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x160], ecx
mov ecx, dword [ebp - 0x15c]
cmp ecx, edi
je 0x430d50
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x15c], ecx
lea ecx, [edx + 0x1c]
cmp eax, ecx
je 0x430d93
mov ecx, dword [edx + 0x1c]
test eax, eax
mov dword [ebp - 0x168], ecx
mov ecx, dword [ebp - 0x164]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x160]
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [edx + 0x1c], ecx
je 0x430dae
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], 0
mov byte [eax], 0
mov eax, dword [ebp - 0x138]
cmp eax, edi
je 0x430915
mov dword [esp], eax
call fcn.004ed8c0
mov eax, dword [ebp - 0x150]
lea edi, [ebp - 0x148]
cmp eax, edi
je 0x43092d
mov dword [esp], eax
call fcn.004ed8c0
mov edx, dword [0x5511b0]
test edx, edx
je 0x430cb0
mov ecx, dword [ebp + 0xc]
mov eax, 0x5511ac
jmp 0x43094e
mov eax, edx
mov edx, dword [edx + 8]
test edx, edx
je 0x43095a
cmp dword [edx + 0x10], ecx
jge 0x430945
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x43094e
cmp eax, 0x5511ac
je 0x430966
cmp ecx, dword [eax + 0x10]
jge 0x430989
lea esi, [ebp - 0x120]
lea edx, [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov ecx, 0x5511a8
mov dword [ebp - 0x120], edx
call fcn.0042e400
sub esp, 8
lea edx, [ebx + 8]
mov dword [ebx], edx
mov edi, dword [eax + 0x14]
mov esi, dword [eax + 0x18]
mov eax, edi
add eax, esi
je 0x4309a2
test edi, edi
je 0x430eca
cmp esi, 0xf
ja 0x430b80
cmp esi, 1
je 0x430bb1
test esi, esi
jne 0x430b9a
mov dword [ebx + 4], esi
mov byte [edx + esi], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x18]
lea esi, [ebp - 0x120]
test eax, eax
jne 0x43093e
jmp 0x430694
mov dword [esp], 0x5511a0
call fcn.004eded0
test eax, eax
je 0x43061d
mov dword [esp], 0x5511a0
mov dword [0x5511ac], 0
mov dword [0x5511b0], 0
mov dword [0x5511b4], 0x5511ac
mov dword [0x5511b8], 0x5511ac
mov dword [0x5511bc], 0
call fcn.004ee000
mov dword [esp], 0x42fb70
call fcn.004014c0
mov edx, dword [0x5511b0]
test edx, edx
mov eax, edx
jne 0x43062d
nop
mov edi, 0x5511ac
jmp 0x430666
lea eax, [ebp - 0x148]
mov edi, esi
mov dword [ebp - 0x150], eax
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x430a7e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [edi + 2]
mov ecx, eax
cmove edi, edx
add cl, al
sbb edi, 3
sub edi, esi
cmp edi, 0xf
ja 0x430cfb
cmp edi, 1
je 0x430d30
test edi, edi
lea eax, [ebp - 0x148]
jne 0x430d12
mov dword [ebp - 0x14c], edi
mov byte [eax + edi], 0
cmp dword [ebp - 0x14c], 0x7fffffff
je 0x430e73
lea ecx, [ebp - 0x150]
mov dword [esp + 4], 1
mov dword [esp], 0x4fe090
call fcn.004cde40
lea edi, [ebp - 0x130]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x138], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x430dd2
mov dword [ebp - 0x138], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x130], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x134], ecx
mov dword [eax], edx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov eax, dword [0x5511b0]
test eax, eax
je 0x430dfb
mov ecx, dword [ebp + 0xc]
mov edx, 0x5511ac
jmp 0x430b6d
mov edx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x430840
cmp dword [eax + 0x10], ecx
jge 0x430b60
mov eax, dword [eax + 0xc]
jmp 0x430b65
test esi, esi
js 0x430ea8
lea eax, [esi + 1]
mov dword [esp], eax
call fcn.004ed900
mov dword [ebx + 8], esi
mov edx, eax
mov dword [ebx], eax
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_memcpy
mov edx, dword [ebx]
jmp 0x4309bc
movzx eax, byte [edi]
mov byte [ebx + 8], al
jmp 0x4309bc
mov dword [0x5511cc], 0
mov dword [0x5511d0], 0
mov esi, 0x4fe298
mov dword [0x5511d4], 0x5511cc
mov dword [0x5511d8], 0x5511cc
mov dword [0x5511dc], 0
mov esi, esi
lea edi, [edi]
mov ecx, 0x5511c8
mov dword [esp + 4], esi
mov dword [esp], 0x5511cc
call fcn.004e1d00
sub esp, 8
test edx, edx
mov ecx, edx
mov dword [ebp - 0x15c], edx
je 0x430c7d
test eax, eax
setne dl
cmp ecx, 0x5511cc
sete al
or dl, al
mov edi, edx
je 0x430cd0
mov dword [esp], 0x18
call fcn.004ed900
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x10], edx
mov dword [esp + 4], eax
mov eax, edi
movzx edi, al
mov dword [esp + 0xc], 0x5511cc
mov dword [esp + 8], ecx
mov dword [esp], edi
call fcn.004e88a0
add dword [0x5511dc], 1
add esi, 8
cmp esi, 0x4fe2b0
jne 0x430c00
mov dword [esp], 0x5511c0
call fcn.004ee000
mov dword [esp], 0x42fb30
call fcn.004014c0
jmp 0x43060e
mov eax, 0x5511ac
jmp 0x43096c
mov edi, 0x5511cc
jmp 0x4306e2
mov eax, dword [ecx + 0x10]
cmp dword [esi], eax
setl al
mov edi, eax
jmp 0x430c3c
mov dword [esp], edi
mov dword [ebp - 0x15c], eax
call fcn.004ed8c0
mov eax, dword [ebp - 0x15c]
mov edi, eax
jmp 0x43075c
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.004ed900
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x150], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x150]
jmp 0x430ad0
movzx eax, byte [ebp - 0x120]
mov byte [ebp - 0x148], al
lea eax, [ebp - 0x148]
jmp 0x430ad0
mov ecx, dword [ebp - 0x160]
test ecx, ecx
je 0x430d81
cmp ecx, 1
jne 0x430e05
movzx ecx, byte [ebp - 0x130]
mov byte [eax], cl
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x160], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x160]
mov dword [edx + 0x18], ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x138]
jmp 0x4308f6
mov eax, dword [ebp - 0x164]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x160]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0x138], edi
lea edi, [ebp - 0x130]
mov eax, edi
jmp 0x4308f6
mov eax, dword [edx + 0x10]
cmp dword [edi + 0x10], eax
setl al
movzx eax, al
jmp 0x43073d
mov ecx, dword [eax + 8]
mov dword [ebp - 0x130], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x128], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x124], ecx
jmp 0x430b2f
mov edx, 0x5511ac
jmp 0x43084d
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x15c], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x160]
jmp 0x430d81
mov eax, dword [ebp - 0x150]
lea esi, [ebp - 0x148]
cmp eax, esi
je 0x430e67
mov dword [esp], eax
call fcn.004ed8c0
mov dword [esp], ebx
call fcn.0043f8d0
mov ebx, eax
jmp 0x430e4f
mov dword [esp], 0x4fe011
call fcn.004e7d10
mov ebx, eax
mov eax, dword [0x5511d0]
mov ecx, 0x5511c8
mov dword [esp], eax
call fcn.004e1f30
push eax
mov dword [esp], 0x5511c0
call fcn.004ede00
mov dword [esp], ebx
call fcn.0043f8d0
mov dword [esp], 0x4fdeff
call fcn.004e7d10
mov edx, dword [ebp - 0x138]
mov ebx, eax
cmp edx, edi
je 0x430e67
mov dword [esp], edx
call fcn.004ed8c0
jmp 0x430e67
mov dword [esp], 0x4fe094
call fcn.004e7b80
lea esi, [esi]
lea edi, [edi]