Function at 0x431e3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x431e79
cmp dword [ebx + 8], 8
jne 0x431e79
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412089
test eax, eax
je 0x431e79
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
mov byte [esp + 0x13], 1
call fcn.00412089
jmp 0x431e80
mov byte [esp + 0x13], 0
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x60]
call fcn.00410dbc
push 0x44
pop esi
push esi
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.004512b0
xor eax, eax
inc eax
add esp, 0xc
cmp dword [ebx + 8], 7
mov dword [esp + 0x88], esi
mov dword [esp + 0xb4], eax
jb 0x431ec3
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.00412089
mov word [esp + 0xb8], ax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call fcn.00411f94
push eax
or edi, 0xffffffff
mov eax, edi
call fcn.0040f8fd
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
pop ecx
call fcn.00411f94
push eax
mov eax, edi
call fcn.0040f8fd
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
pop ecx
call fcn.00411f94
push eax
mov eax, edi
call fcn.0040f8fd
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x10]
pop ecx
call fcn.00411f94
push eax
mov eax, edi
call fcn.0040f8fd
cmp dword [ebx + 8], 6
pop ecx
mov dword [esp + 0x24], eax
jb 0x431f4c
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x14]
call fcn.00411f94
push eax
mov eax, edi
call fcn.0040f8fd
mov dword [esp + 0x2c], eax
jmp 0x431f86
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
push 0
call esi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0044f496
pop ecx
push edi
push eax
mov dword [esp + 0x28], eax
call esi
push dword [esp + 0x20]
or eax, 0xffffffff
call fcn.0040f8fd
pop ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
call fcn.0044f500
mov eax, dword [ebx + 4]
mov edi, dword [eax]
pop ecx
mov esi, 0x46ad3e
push esi
call fcn.004125f9
mov eax, dword [ebx + 4]
mov edi, dword [eax + 4]
push esi
call fcn.004125f9
mov eax, dword [ebx + 4]
mov edi, dword [eax + 8]
push esi
call fcn.004125f9
xor edi, edi
cmp byte [esp + 0x13], 0
je 0x432164
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
call fcn.00402ba1
test al, al
je 0x4321c0
lea esi, [esp + 0x38]
call fcn.00434f88
test al, al
je 0x4321c0
lea esi, [esp + 0x44]
call fcn.00434fb7
test al, al
je 0x4321c0
lea esi, [esp + 0x2c]
call fcn.00402ba1
test al, al
mov eax, dword [esp + 0x34]
jne 0x43201d
mov eax, 0x4291cc
lea ecx, [esp + 0x20]
push ecx
push edi
push 2
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x30]
call eax
cmp dword [esp + 0x20], edi
jne 0x432090
push edi
push 3
mov eax, dword [ebp + 8]
call fcn.0041c3a1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c3d4
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412534
cmp dword [esp + 0x44], edi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x43206f
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x43207b
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x432302
push dword [esp + 0x2c]
call esi
jmp 0x432302
lea esi, [esp + 0x38]
call fcn.00434f88
test al, al
mov eax, dword [esp + 0x40]
jne 0x4320a6
mov eax, 0x405faf
push dword [esp + 0x20]
call eax
lea esi, [esp + 0x60]
call fcn.00410eb1
cmp eax, 0xffffffff
mov dword [esp + 0xc4], eax
jne 0x4320c6
mov byte [esp + 0x13], 0
lea esi, [esp + 0x60]
call fcn.00410f6d
cmp eax, 0xffffffff
mov dword [esp + 0xc8], eax
jne 0x4320e0
mov byte [esp + 0x13], 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x80]
lea eax, [esp + 0x64]
call fcn.004111f5
cmp eax, 0xffffffff
mov dword [esp + 0xc0], eax
jne 0x432106
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
je 0x432118
or dword [esp + 0xb4], 0x100
lea esi, [esp + 0x44]
call fcn.00434fb7
test al, al
mov eax, dword [esp + 0x4c]
jne 0x43212e
mov eax, fcn.0040369b
call eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], edi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x43214c
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x432158
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x432164
push dword [esp + 0x2c]
call esi
lea eax, [esp + 0xd0]
call fcn.00401d03
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412089
mov esi, eax
lea eax, [esp + 0xd0]
push eax
call fcn.00401f5b
test al, al
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
je 0x4321c8
mov eax, dword [esp + 0x38]
lea edi, [esp + 0xec]
call fcn.004020fc
xor edi, edi
jmp 0x4321d8
push edi
push 2
jmp 0x43203c
push dword [esp + 0x38]
lea eax, [esp + 0xf0]
call fcn.00402523
push dword [esp + 0x1c]
mov bl, al
call fcn.0045132a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x1c]
je 0x4321f3
mov byte [ecx], 0
inc ecx
dec eax
jne 0x4321ec
push dword [esp + 0x14]
call fcn.0045132a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x14]
je 0x43220c
mov byte [ecx], 0
inc ecx
dec eax
jne 0x432205
push dword [esp + 0x18]
call fcn.0045132a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x18]
je 0x432225
mov byte [ecx], 0
inc ecx
dec eax
jne 0x43221e
push dword [esp + 0x1c]
call fcn.0044f500
pop ecx
push dword [esp + 0x14]
call fcn.0044f500
pop ecx
push dword [esp + 0x18]
call fcn.0044f500
pop ecx
push dword [esp + 0x24]
call fcn.0044f500
pop ecx
push dword [esp + 0x28]
call fcn.0044f500
test bl, bl
pop ecx
jne 0x432281
mov eax, dword [ebp + 8]
push edi
push 1
call fcn.0041c3a1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c3d4
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412534
jmp 0x4322f6
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x4322b8
lea edi, [esp + 0x60]
call fcn.004110d7
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
call fcn.004110f2
mov esi, dword [ebp + 8]
add esi, 0x47c
mov eax, edi
call fcn.00434fe6
cmp byte [ebp + 0xc], 0
je 0x4322cd
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x454], eax
jmp 0x4322f6
mov eax, dword [esp + 0x58]
fild dword [esp + 0x58]
test eax, eax
jge 0x4322df
fadd qword [0x46eb90]
mov esi, dword [ebp + 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.004125e0
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xd0]
call fcn.00401e04
lea eax, [esp + 0x60]
call fcn.00410e65
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc