Function at 0x402370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
mov dword [ebp - 0x90], ecx
mov edi, edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x8c]
mov esi, 0x455900
mov eax, 0x455d60
call fcn.00446afc
mov word [ebx + 0x10], 8
mov edx, dword [ebp - 4]
mov dword [edx], 0x455e6c
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x308], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x310], edx
xor eax, eax
mov ecx, dword [ebp - 4]
dec edi
mov dword [ecx + 0x30c], eax
jne 0x402410
push 0x104
mov edx, dword [ebp - 4]
add edx, 0x314
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push esi
mov ecx, dword [ebp - 4]
add ecx, 0x314
push ecx
call fcn.004466dc
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 4]
add edx, 0x314
push edx
call fcn.004466dc
add esp, 8
jmp 0x402442
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 4]
push esi
add ecx, 0x314
mov edi, eax
xor eax, eax
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov word [ebx + 0x10], 0x14
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
add edx, 0x314
call fcn.0045392c
inc dword [ebx + 0x1c]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x40e744]
call sym.FTDIUNIN.exe__Inifiles_TIniFile__bctr_qqrx17System_AnsiString
mov ecx, dword [ebp - 4]
mov edx, 2
mov dword [ecx + 4], eax
lea eax, [ebp - 8]
dec dword [ebx + 0x1c]
call fcn.004539a0
mov word [ebx + 0x10], 0x20
lea edx, [esi + 0x13]
lea eax, [ebp - 0x14]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x18], eax
push edx
lea edx, [esi + 0xc]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 2]
mov ecx, dword [eax]
lea eax, [ebp - 0xc]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x18], 0
je 0x4024da
mov eax, dword [ebp - 0x18]
jmp 0x4024dd
lea eax, [esi + 0x14]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x419
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004539a0
mov ecx, dword [ebp - 4]
add ecx, 0x419
push ecx
call fcn.0044676c
pop ecx
test eax, eax
jne 0x40256d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x60c], edx
jmp 0x402970
mov ecx, dword [ebp - 4]
lea edx, [esi + 0x29]
lea eax, [ebp - 0x24]
mov dword [ecx + 0x60c], 1
mov word [ebx + 0x10], 0x2c
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x28], eax
push edx
lea edx, [esi + 0x1f]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 0x15]
mov ecx, dword [eax]
lea eax, [ebp - 0x1c]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x28], 0
je 0x4025d4
mov eax, dword [ebp - 0x28]
jmp 0x4025d7
lea eax, [esi + 0x31]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x599
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004539a0
mov word [ebx + 0x10], 0x38
lea edx, [esi + 0x43]
lea eax, [ebp - 0x34]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x38], eax
push edx
lea edx, [esi + 0x3c]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 0x32]
mov ecx, dword [eax]
lea eax, [ebp - 0x2c]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x38], 0
je 0x40269d
mov eax, dword [ebp - 0x38]
jmp 0x4026a0
lea eax, [esi + 0x4b]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x5a9
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004539a0
mov word [ebx + 0x10], 0x44
lea edx, [esi + 0x5d]
lea eax, [ebp - 0x44]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x48], eax
push edx
lea edx, [esi + 0x56]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 0x4c]
mov ecx, dword [eax]
lea eax, [ebp - 0x3c]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x48], 0
je 0x402766
mov eax, dword [ebp - 0x48]
jmp 0x402769
lea eax, [esi + 0x65]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x5b9
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004539a0
mov word [ebx + 0x10], 0x50
lea edx, [esi + 0x74]
lea eax, [ebp - 0x54]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x58], eax
push edx
lea edx, [esi + 0x70]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 0x66]
mov ecx, dword [eax]
lea eax, [ebp - 0x4c]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x58], 0
je 0x40282f
mov eax, dword [ebp - 0x58]
jmp 0x402832
lea eax, [esi + 0x7d]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x499
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004539a0
mov word [ebx + 0x10], 0x5c
lea edx, [esi + 0x91]
lea eax, [ebp - 0x64]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x68]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x68], eax
push edx
lea edx, [esi + 0x88]
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
call fcn.0045392c
inc dword [ebx + 0x1c]
lea edx, [esi + 0x7e]
mov ecx, dword [eax]
lea eax, [ebp - 0x5c]
push ecx
call fcn.0045392c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
pop ecx
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x68], 0
je 0x4028fe
mov eax, dword [ebp - 0x68]
jmp 0x402904
lea eax, [esi + 0xa1]
mov edx, dword [ebp - 4]
mov edi, eax
xor eax, eax
add edx, 0x5c9
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebx + 0x1c]
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004539a0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004539a0
mov ecx, dword [ebx]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4