Function at 0x405570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4cae52
mov eax, dword fs:[0]
push eax
sub esp, 0xa2c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0xa40]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa50]
mov ebp, dword [esp + 0xa54]
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x18], ebx
je 0x4055e9
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
push ecx
push ebp
mov ecx, eax
mov eax, dword [edx + 8]
push esi
call eax
sub eax, ebx
je 0x4059b4
sub eax, 1
jne 0x4055e9
xor al, al
jmp 0x4059b6
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x4bc]
mov dword [esp + 0xa48], ebx
call fcn.00430920
lea ecx, [esp + 0x144]
call fcn.00430920
lea ecx, [esp + 0x4bc]
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xa4c], 2
call fcn.00455af0
add esp, 4
lea edx, [esi + 0x10]
mov ecx, 0x4e64ac
call fcn.004151f0
test eax, eax
jne 0x40564e
lea edx, [esi + 0x20]
mov ecx, 0x4e64ac
call fcn.004151f0
test eax, eax
je 0x405669
mov ebx, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x148]
call fcn.00452e50
add esp, 4
xor ebx, ebx
jmp 0x40567f
push esi
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00453090
add esp, 0xc
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x26c]
mov word [esp + 0x82c], dx
mov dword [esp + 0x82e], eax
mov word [esp + 0x832], ax
call fcn.00429ba0
push 0x206
lea ecx, [esp + 0x83a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x840], ax
call fcn.004a7380
add esp, 0xc
push 0x104
lea edx, [esp + 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x20]
call fcn.00430920
lea eax, [esp + 0x834]
lea edx, [esp + 0x20]
call fcn.00430b00
lea eax, [esp + 0x2c]
cmp byte [esp + 0x13c], bl
jne 0x405703
mov eax, dword [esp + 0x28]
add eax, 4
lea edx, [esp + 0x26c]
call fcn.00430b00
mov edi, vtable.t_str.0
mov dword [esp + 0x20], edi
cmp byte [esp + 0x13c], bl
jne 0x405739
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x405739
push eax
call fcn.004a4a7f
add esp, 4
lea esi, [esp + 0x150]
cmp byte [esp + 0x260], bl
jne 0x405750
mov esi, dword [esp + 0x14c]
lea ecx, [esp + 0x20]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0x20]
call fcn.00430b00
lea eax, [esp + 0x2c]
cmp byte [esp + 0x13c], bl
jne 0x405776
mov eax, dword [esp + 0x28]
cmp word [eax + 4], 0x2e
jne 0x40578f
lea ecx, [esp + 0x20]
lea esi, [esp + 0x26c]
call fcn.0042ac20
jmp 0x4057a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x270]
call fcn.00429f70
mov dword [esp + 0x20], edi
cmp byte [esp + 0x13c], bl
jne 0x4057c2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x4057c2
push eax
call fcn.004a4a7f
add esp, 4
lea eax, [esp + 0x278]
cmp byte [esp + 0x388], bl
jne 0x4057d9
mov eax, dword [esp + 0x274]
push ebx
lea edi, [eax + 4]
lea esi, [esp + 0x830]
call fcn.0042e580
add esp, 4
lea ecx, [esp + 0x394]
call fcn.00430920
movzx edx, word [esp + 0x832]
movzx eax, word [esp + 0x830]
movzx ecx, word [esp + 0x82e]
push edx
movzx edx, word [esp + 0x830]
push eax
push ecx
push edx
lea eax, [esp + 0x3a4]
push 0x4ef04c
push eax
call fcn.00430ed0
add esp, 0x18
lea ecx, [esp + 0x5e4]
call fcn.00430920
lea ecx, [esp + 0x708]
call fcn.00430920
mov ecx, ebp
lea edi, [esp + 0x5e4]
call fcn.00465650
lea eax, [esp + 0x4c8]
cmp byte [esp + 0x5d8], bl
jne 0x40586e
mov eax, dword [esp + 0x4c4]
lea ebx, [eax + 4]
mov edx, str.name
lea ecx, [esp + 0x5e4]
call fcn.00465840
cmp byte [esp + 0x260], 0
lea eax, [esp + 0x150]
jne 0x40589a
mov eax, dword [esp + 0x14c]
lea ebx, [eax + 4]
mov edx, 0x4ef070
lea ecx, [esp + 0x5e4]
call fcn.00465840
cmp byte [esp + 0x4b0], 0
lea eax, [esp + 0x3a0]
jne 0x4058c6
mov eax, dword [esp + 0x39c]
lea ebx, [eax + 4]
mov edx, str.version
lea ecx, [esp + 0x5e4]
call fcn.00465840
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x5e4]
call fcn.004657d0
lea eax, [esp + 0x5e4]
call fcn.0043a450
cmp byte [esp + 0x4b0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x394], esi
jne 0x405927
mov eax, dword [esp + 0x39c]
lea ecx, [esp + 0x3a0]
cmp eax, ecx
je 0x405927
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x388], 0
mov dword [esp + 0x26c], esi
jne 0x405953
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x278]
cmp eax, edx
je 0x405953
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x260], 0
mov dword [esp + 0x144], esi
jne 0x40597f
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x150]
cmp eax, ecx
je 0x40597f
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x5d8], 0
mov dword [esp + 0x4bc], esi
jne 0x4059ab
mov eax, dword [esp + 0x4c4]
lea edx, [esp + 0x4c8]
cmp eax, edx
je 0x4059ab
push eax
call fcn.004a4a7f
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0042c930
mov al, 1
mov ecx, dword [esp + 0xa40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa28]
xor ecx, esp
call fcn.004a4a25
add esp, 0xa38
ret 8