Function at 0x403b70
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0xc40
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
push esi
xor ebp, ebp
push 0x206
lea eax, [esp + 0xa46]
mov esi, ecx
push ebp
push eax
mov dword [esp + 0x20], esi
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov word [esp + 0xa4c], bp
call fcn.0044d9b0
push 0x206
lea ecx, [esp + 0x642]
push ebp
push ecx
mov word [esp + 0x648], bp
call fcn.0044d9b0
push 0x206
lea edx, [esp + 0x36]
push ebp
push edx
mov word [esp + 0x3c], bp
call fcn.0044d9b0
push 0x206
lea eax, [esp + 0x862]
push ebp
push eax
mov word [esp + 0x868], bp
call fcn.0044d9b0
push 0x206
lea ecx, [esp + 0x256]
push ebp
push ecx
mov word [esp + 0x25c], bp
call fcn.0044d9b0
add esp, 0x3c
push ebp
push 0x1a
lea edx, [esp + 0xa48]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0xa40]
mov word [esp + eax + 0x220], cx
add eax, 2
cmp cx, bp
jne 0x403c30
lea eax, [esp + 0x220]
push 0x5c
push eax
call fcn.0044da2a
add esp, 8
cmp eax, ebp
jne 0x403c7d
mov ecx, esi
call fcn.004035c0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0044d5bb
add esp, 0xc40
ret
mov word [eax], bp
xor eax, eax
jmp 0x403c90
movzx ecx, word [esp + eax + 0x220]
mov word [esp + eax + 0x630], cx
add eax, 2
cmp cx, bp
jne 0x403c90
lea eax, [esp + 0x630]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x403cb2
mov ecx, dword [str.Local]
mov edx, dword [0x46bb6c]
mov dword [eax], ecx
mov ecx, dword [0x46bb70]
mov dword [eax + 4], edx
mov dx, word [0x46bb74]
mov dword [eax + 8], ecx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [eax + 0xc], dx
lea eax, [esp + 0x634]
push eax
call edi
test eax, eax
je 0x403cfd
mov ebx, 1
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x403d00
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x403d20
mov ecx, dword [str.LocalLow]
mov edx, dword [0x46bb58]
mov dword [eax], ecx
mov ecx, dword [0x46bb5c]
mov dword [eax + 4], edx
mov edx, dword [0x46bb60]
mov dword [eax + 8], ecx
mov ecx, dword [0x46bb64]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x1c]
push edx
mov dword [eax + 0x10], ecx
call edi
test eax, eax
je 0x403d6b
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x83c], cx
add eax, 2
cmp cx, bp
jne 0x403d70
lea eax, [esp + 0x83c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x403d92
mov ecx, dword [str.Roaming]
mov edx, dword [0x46bb44]
mov dword [eax], ecx
mov ecx, dword [0x46bb48]
mov dword [eax + 4], edx
mov edx, dword [0x46bb4c]
mov dword [eax + 8], ecx
mov cx, word [0x46bb50]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x83c]
push edx
mov word [eax + 0x10], cx
call edi
test eax, eax
mov eax, 1
jne 0x403de1
mov eax, ebp
cmp ebx, ebp
je 0x403fa9
cmp dword [esp + 0x10], ebp
je 0x403fa9
cmp eax, ebp
je 0x403fa9
mov ecx, esi
call fcn.00403780
test eax, eax
je 0x403fa9
lea eax, [esp + 0x1c]
lea ebx, [esi + 0x1008]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x403e20
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x403e34
mov edx, dword [0x46baac]
lea eax, [esi + 0x71c]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403e50
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x403e62
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x403e83
mov eax, dword [0x46baac]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add eax, 0x780
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403ea1
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x403eb3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x403ed4
mov ecx, dword [0x46baac]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov dword [edi], ecx
call esi
test eax, eax
jne 0x403f08
mov ecx, dword [0x4865c8]
push ebx
call fcn.00415090
mov ecx, eax
call fcn.00412f70
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.0044d9b0
lea edx, [esp + 0x438]
add esp, 0xc
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x403f31
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x403f50
mov ecx, dword [str.Config_]
mov edx, dword [0x46baa0]
mov dword [eax], ecx
mov ecx, dword [0x46baa4]
mov dword [eax + 4], edx
mov edx, dword [0x46baa8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x42c]
push eax
call esi
test eax, eax
jne 0x403fb0
lea ecx, [esp + 0x42c]
push ecx
mov ecx, dword [0x4865c8]
call fcn.00415090
mov ecx, eax
call fcn.00412f70
jmp 0x403fb0
mov ecx, esi
call fcn.004035c0
mov ecx, dword [esp + 0xc4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044d5bb
add esp, 0xc40
ret