Function at 0x403a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fac7
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x25c], esi
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov ecx, 0x20a
mov dword [ebp - 0x228], 1
lea eax, [ebp - 0x220]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x403aa7
lea eax, [ebp - 0x220]
push eax
push ecx
push ecx
push 0x1a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x403b46
push 2
push 0x4271a0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
call fcn.00405be0
lea eax, [ebp - 0x240]
mov ecx, esi
push eax
call fcn.004059f0
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x403b46
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cbb
push edx
push ecx
call fcn.0040741b
add esp, 8
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x248], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x244], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b70
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00405be0
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
call fcn.004059f0
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x403be0
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cbb
push edx
push ecx
call fcn.0040741b
add esp, 8
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403c0f
lea edi, [ecx + 1]
mov eax, esi
mov dword [esi + 0x10], edi
cmp edx, 8
jb 0x403bfe
mov eax, dword [esi]
mov edx, 0x5c
mov word [eax + ecx*2], dx
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x403c2c
push 1
push 0x427114
mov byte [ebp - 0x224], 0
mov ecx, esi
push dword [ebp - 0x224]
push 1
call fcn.00406120
cmp dword [0x42a8e4], 8
mov edx, 0x42a8d0
mov eax, dword [esi + 0x14]
cmovae edx, dword [0x42a8d0]
mov ebx, dword [esi + 0x10]
sub eax, ebx
mov ecx, dword [0x42a8e0]
cmp ecx, eax
ja 0x403c86
cmp dword [esi + 0x14], 8
lea eax, [ebx + ecx]
mov dword [ebp - 0x224], eax
mov edi, esi
mov dword [esi + 0x10], eax
jb 0x403c67
mov edi, dword [esi]
lea eax, [ecx + ecx]
push eax
push edx
lea eax, [edi + ebx*2]
push eax
call fcn.0040ba40
mov eax, dword [ebp - 0x224]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x403c9d
push ecx
push edx
mov byte [ebp - 0x224], 0
push dword [ebp - 0x224]
push ecx
mov ecx, esi
call fcn.00406120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret
call fcn.0040da8a
int3