Function at 0x431e6c
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 0x431eaa
cmp dword [ebx + 8], 8
jne 0x431eaa
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
call fcn.004120ba
test eax, eax
je 0x431eaa
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
mov byte [esp + 0x13], 1
call fcn.004120ba
jmp 0x431eb1
mov byte [esp + 0x13], 0
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x60]
call fcn.00410ded
push 0x44
pop esi
push esi
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.004512d0
xor eax, eax
inc eax
add esp, 0xc
cmp dword [ebx + 8], 7
mov dword [esp + 0x88], esi
mov dword [esp + 0xb4], eax
jb 0x431ef4
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.004120ba
mov word [esp + 0xb8], ax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call fcn.00411fc5
push eax
or edi, 0xffffffff
mov eax, edi
call fcn.0040f92e
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
pop ecx
call fcn.00411fc5
push eax
mov eax, edi
call fcn.0040f92e
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
pop ecx
call fcn.00411fc5
push eax
mov eax, edi
call fcn.0040f92e
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x10]
pop ecx
call fcn.00411fc5
push eax
mov eax, edi
call fcn.0040f92e
cmp dword [ebx + 8], 6
pop ecx
mov dword [esp + 0x24], eax
jb 0x431f7d
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x14]
call fcn.00411fc5
push eax
mov eax, edi
call fcn.0040f92e
mov dword [esp + 0x2c], eax
jmp 0x431fb7
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push 0
push 0
call esi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0044f4b6
pop ecx
push eax
push edi
mov dword [esp + 0x28], eax
call esi
push dword [esp + 0x20]
or eax, 0xffffffff
call fcn.0040f92e
pop ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
call fcn.0044f520
mov eax, dword [ebx + 4]
mov edi, dword [eax]
pop ecx
mov esi, 0x46ad3e
push esi
call fcn.0041262a
mov eax, dword [ebx + 4]
mov edi, dword [eax + 4]
push esi
call fcn.0041262a
mov eax, dword [ebx + 4]
mov edi, dword [eax + 8]
push esi
call fcn.0041262a
xor edi, edi
cmp byte [esp + 0x13], 0
je 0x432195
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.00402bd2
test al, al
je 0x4321f1
lea esi, [esp + 0x38]
call fcn.00434fb9
test al, al
je 0x4321f1
lea esi, [esp + 0x44]
call fcn.00434fe8
test al, al
je 0x4321f1
lea esi, [esp + 0x2c]
call fcn.00402bd2
test al, al
mov eax, dword [esp + 0x34]
jne 0x43204e
mov eax, 0x4291fd
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 0x4320c1
push edi
push 3
mov eax, dword [ebp + 8]
call fcn.0041c3d2
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c405
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412565
cmp dword [esp + 0x44], edi
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
je 0x4320a0
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x4320ac
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x432333
push dword [esp + 0x2c]
call esi
jmp 0x432333
lea esi, [esp + 0x38]
call fcn.00434fb9
test al, al
mov eax, dword [esp + 0x40]
jne 0x4320d7
mov eax, 0x405fe0
push dword [esp + 0x20]
call eax
lea esi, [esp + 0x60]
call fcn.00410ee2
cmp eax, 0xffffffff
mov dword [esp + 0xc4], eax
jne 0x4320f7
mov byte [esp + 0x13], 0
lea esi, [esp + 0x60]
call fcn.00410f9e
cmp eax, 0xffffffff
mov dword [esp + 0xc8], eax
jne 0x432111
mov byte [esp + 0x13], 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x80]
lea eax, [esp + 0x64]
call fcn.00411226
cmp eax, 0xffffffff
mov dword [esp + 0xc0], eax
jne 0x432137
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
je 0x432149
or dword [esp + 0xb4], 0x100
lea esi, [esp + 0x44]
call fcn.00434fe8
test al, al
mov eax, dword [esp + 0x4c]
jne 0x43215f
mov eax, fcn.004036cc
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 0x43217d
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x432189
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x432195
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.004120ba
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 0x4321f9
mov eax, dword [esp + 0x38]
lea edi, [esp + 0xec]
call fcn.004020f3
xor edi, edi
jmp 0x432209
push edi
push 2
jmp 0x43206d
push dword [esp + 0x38]
lea eax, [esp + 0xf0]
call fcn.0040251a
push dword [esp + 0x1c]
mov bl, al
call fcn.0045134a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x1c]
je 0x432224
mov byte [ecx], 0
inc ecx
dec eax
jne 0x43221d
push dword [esp + 0x14]
call fcn.0045134a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x14]
je 0x43223d
mov byte [ecx], 0
inc ecx
dec eax
jne 0x432236
push dword [esp + 0x18]
call fcn.0045134a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x18]
je 0x432256
mov byte [ecx], 0
inc ecx
dec eax
jne 0x43224f
push dword [esp + 0x1c]
call fcn.0044f520
pop ecx
push dword [esp + 0x14]
call fcn.0044f520
pop ecx
push dword [esp + 0x18]
call fcn.0044f520
pop ecx
push dword [esp + 0x24]
call fcn.0044f520
pop ecx
push dword [esp + 0x28]
call fcn.0044f520
test bl, bl
pop ecx
jne 0x4322b2
mov eax, dword [ebp + 8]
push edi
push 1
call fcn.0041c3d2
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c405
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412565
jmp 0x432327
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x4322e9
lea edi, [esp + 0x60]
call fcn.00411108
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
call fcn.00411123
mov esi, dword [ebp + 8]
add esi, 0x47c
mov eax, edi
call fcn.00435017
cmp byte [ebp + 0xc], 0
je 0x4322fe
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x454], eax
jmp 0x432327
mov eax, dword [esp + 0x58]
fild dword [esp + 0x58]
test eax, eax
jge 0x432310
fadd qword [0x46eb90]
mov esi, dword [ebp + 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.00412611
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0xd0]
call fcn.00401e04
lea eax, [esp + 0x60]
call fcn.00410e96
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc