Function at 0x432043
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 0x432081
cmp dword [ebx + 8], 8
jne 0x432081
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412462
test eax, eax
je 0x432081
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
mov byte [esp + 0x13], 1
call fcn.00412462
jmp 0x432088
mov byte [esp + 0x13], 0
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x60]
call fcn.00411195
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [esp + 0x8c]
push edi
push eax
call fcn.00451720
xor eax, eax
inc eax
add esp, 0xc
cmp dword [ebx + 8], 7
mov dword [esp + 0x88], esi
mov dword [esp + 0xb4], eax
jb 0x4320cc
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.00412462
mov word [esp + 0xb8], ax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call fcn.00412367
push eax
call fcn.0040f3d2
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
pop ecx
call fcn.00412367
push eax
call fcn.0040f3d2
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
pop ecx
call fcn.00412367
push eax
call fcn.0040f3d2
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x10]
pop ecx
call fcn.00412367
push eax
call fcn.0040f3d2
cmp dword [ebx + 8], 6
pop ecx
mov dword [esp + 0x20], eax
jb 0x432149
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x14]
call fcn.00412367
push eax
call fcn.0040f3d2
pop ecx
mov dword [esp + 0x24], eax
jmp 0x432175
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push edi
push edi
call esi
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f907
pop ecx
push eax
push edi
mov dword [esp + 0x2c], eax
call esi
mov eax, dword [ebx + 4]
mov edi, dword [eax]
mov esi, 0x46bf80
push esi
call fcn.00412a0a
mov eax, dword [ebx + 4]
mov edi, dword [eax + 4]
push esi
call fcn.00412a0a
mov eax, dword [ebx + 4]
mov edi, dword [eax + 8]
push esi
call fcn.00412a0a
xor edi, edi
cmp byte [esp + 0x13], 0
je 0x432352
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.00402be6
test al, al
je 0x4323ae
lea esi, [esp + 0x38]
call fcn.004352e7
test al, al
je 0x4323ae
lea esi, [esp + 0x44]
call fcn.00435316
test al, al
je 0x4323ae
lea esi, [esp + 0x2c]
call fcn.00402be6
test al, al
mov eax, dword [esp + 0x34]
jne 0x43220b
mov eax, 0x4353ba
lea ecx, [esp + 0x28]
push ecx
push edi
push 2
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call eax
cmp dword [esp + 0x28], edi
jne 0x43227e
push edi
push 3
mov eax, dword [ebp + 8]
call fcn.0041c7b4
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c7e7
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412945
cmp dword [esp + 0x44], edi
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
je 0x43225d
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x432269
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x4324f0
push dword [esp + 0x2c]
call esi
jmp 0x4324f0
lea esi, [esp + 0x38]
call fcn.004352e7
test al, al
mov eax, dword [esp + 0x40]
jne 0x432294
mov eax, 0x40605a
push dword [esp + 0x28]
call eax
lea esi, [esp + 0x60]
call fcn.0041128a
cmp eax, 0xffffffff
mov dword [esp + 0xc4], eax
jne 0x4322b4
mov byte [esp + 0x13], 0
lea esi, [esp + 0x60]
call fcn.00411346
cmp eax, 0xffffffff
mov dword [esp + 0xc8], eax
jne 0x4322ce
mov byte [esp + 0x13], 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x80]
lea eax, [esp + 0x64]
call fcn.004115ce
cmp eax, 0xffffffff
mov dword [esp + 0xc0], eax
jne 0x4322f4
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
je 0x432306
or dword [esp + 0xb4], 0x100
lea esi, [esp + 0x44]
call fcn.00435316
test al, al
mov eax, dword [esp + 0x4c]
jne 0x43231c
mov eax, fcn.00429708
call eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x44], edi
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
je 0x43233a
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x38], edi
je 0x432346
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x2c], edi
je 0x432352
push dword [esp + 0x2c]
call esi
lea eax, [esp + 0xd0]
call fcn.00401d17
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412462
mov esi, eax
lea eax, [esp + 0xd0]
push eax
call fcn.00401f6f
test al, al
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
je 0x4323b6
mov eax, dword [esp + 0x30]
lea edi, [esp + 0xec]
call fcn.00402107
xor edi, edi
jmp 0x4323c6
push edi
push 2
jmp 0x43222a
push dword [esp + 0x30]
lea eax, [esp + 0xf0]
call fcn.0040252e
push dword [esp + 0x14]
mov bl, al
call fcn.0045179a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x14]
je 0x4323e1
mov byte [ecx], 0
inc ecx
dec eax
jne 0x4323da
push dword [esp + 0x18]
call fcn.0045179a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x18]
je 0x4323fa
mov byte [ecx], 0
inc ecx
dec eax
jne 0x4323f3
push dword [esp + 0x1c]
call fcn.0045179a
cmp eax, edi
pop ecx
mov ecx, dword [esp + 0x1c]
je 0x432413
mov byte [ecx], 0
inc ecx
dec eax
jne 0x43240c
push dword [esp + 0x14]
call fcn.0044f971
pop ecx
push dword [esp + 0x18]
call fcn.0044f971
pop ecx
push dword [esp + 0x1c]
call fcn.0044f971
pop ecx
push dword [esp + 0x20]
call fcn.0044f971
pop ecx
push dword [esp + 0x24]
call fcn.0044f971
test bl, bl
pop ecx
jne 0x43246f
mov eax, dword [ebp + 8]
push edi
push 1
call fcn.0041c7b4
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c7e7
mov esi, dword [ebp + 0x10]
push edi
call fcn.00412945
jmp 0x4324e4
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x4324a6
lea edi, [esp + 0x60]
call fcn.004114b0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
call fcn.004114cb
mov esi, dword [ebp + 8]
add esi, 0x57c
mov eax, edi
call fcn.00435345
cmp byte [ebp + 0xc], 0
je 0x4324bb
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x554], eax
jmp 0x4324e4
mov eax, dword [esp + 0x58]
fild dword [esp + 0x58]
test eax, eax
jge 0x4324cd
fadd qword [0x4726a8]
mov esi, dword [ebp + 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.004129f1
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0xd0]
call fcn.00401e18
lea eax, [esp + 0x60]
call fcn.0041123e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc