Function at 0x4735f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push edi
push esi
push ebx
mov edi, dword [ebp + 8]
call fcn.004c365c
add esp, 0xfffffff4
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0040e4fc
mov dword [0x5a4e30], eax
add esp, 0x10
test eax, eax
je 0x473628
inc eax
jmp 0x47362d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [0x5a4e30], eax
add esp, 0xfffffffc
push 8
push 0x47354f
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
je 0x47374c
add esp, 0xfffffffc
push 5
push 0x473558
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x47367c
add esp, 0xfffffff4
push 0x468c60
jmp 0x473744
add esp, 0xfffffffc
push 6
push 0x47355e
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4736a8
add esp, 0xfffffff4
push 0x473565
jmp 0x473744
add esp, 0xfffffffc
push 6
push 0x473567
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4736d0
add esp, 0xfffffff4
push 0x47356f
jmp 0x473744
add esp, 0xfffffffc
push 6
push 0x473571
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4736f8
add esp, 0xfffffff4
push 0x473578
jmp 0x473744
add esp, 0xfffffffc
push 7
push 0x47357a
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x473720
add esp, 0xfffffff4
push 0x473582
jmp 0x473744
add esp, 0xfffffffc
push 9
push 0x473584
push dword [0x5a4e30]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x47374c
add esp, 0xfffffff4
push 0x47358e
call fcn.0046dd68
add esp, 0x10
cmp edi, 1
jne 0x47377c
add esp, 0xfffffff8
mov eax, dword [0x4c523c]
movsx eax, byte [eax + 4]
push eax
push 0x473056
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
jne 0x47377c
call fcn.00472750
xor eax, eax
jmp 0x4739b4
call fcn.004728b0
call fcn.00472cb8
mov ebx, eax
test ebx, ebx
jne 0x4739b4
mov dword [ebp - 0x804], 0
mov dword [0x4d8374], 0
lea esi, [ebp - 0x804]
mov esi, esi
add esp, 0xfffffff4
push esi
push 0x4678b8
push dword [0x4d500c]
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.004bb634
add esp, 0x20
test eax, eax
jle 0x4737ea
add esp, 0xfffffffc
push dword [ebp - 0x804]
push dword [0x600d00]
push eax
call fcn.0046e30c
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4737ac
call fcn.0044ffdc
call fcn.00472df0
add ebx, eax
jne 0x473826
cmp dword [0x4d8374], edi
jl 0x473900
add esp, 0xfffffff8
mov eax, dword [0x4c523c]
movsx eax, byte [eax + 4]
push eax
push 0x473056
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
jne 0x473900
mov eax, dword [0x58d570]
test eax, eax
jne 0x4738dc
lea edi, [ebp - 0x400]
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x800]
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
add esp, 0xfffffff8
push 0x3f2
lea ebx, [ebp - 0x400]
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push 0x472c6a
push ebx
call sub.msvcrt.dll_strcat
add esp, 0xfffffffc
push 0x3ff
lea esi, [ebp - 0x800]
push esi
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
add esp, 0x14
test eax, eax
je 0x4738b9
mov byte [ebp - 0x401], 0
add esp, 0xfffffff8
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
test eax, eax
je 0x4738b9
mov byte [eax + 1], 0
add esp, 0xfffffff8
push 0x472c78
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [0x4c523c]
push esi
push ebx
push dword [0x5a4e30]
push 0x4735a8
push 0
push 3
mov eax, dword [eax + 0x28]
call eax
jmp 0x4738f5
mov eax, dword [0x4c523c]
push dword [0x5a4e30]
push 0x4735e5
push 0
push 2
mov eax, dword [eax + 0x28]
call eax
mov eax, 1
jmp 0x4739b4
call fcn.00472ebc
mov eax, dword [0x4d8374]
mov edx, edi
sub edx, eax
mov dword [ebp - 0x808], edx
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx + eax*4]
test edx, edx
jle 0x47394b
mov eax, dword [0x4c523c]
mov al, byte [eax + 4]
cmp al, 0x72
je 0x47394b
cmp al, 0x41
je 0x47394b
cmp al, 0x57
je 0x47394b
cmp al, 0x50
je 0x47394b
add esp, 0xfffffff8
lea eax, [ebp - 0x808]
push eax
push ebx
call fcn.0040e154
mov ebx, eax
add esp, 0x10
cmp dword [0x5f2100], 0
je 0x473961
add esp, 0xfffffff4
push 1
call sub.KERNEL32.dll_Sleep
add esp, 0xc
add esp, 0xfffffff8
push ebx
push dword [ebp - 0x808]
call fcn.00473170
mov esi, eax
add esp, 0xfffffff4
push 0
call fcn.004146e4
add esp, 0x20
call fcn.004ba478
call fcn.0044bac4
call fcn.0044db24
call fcn.0044dd3c
call fcn.0046dd3c
call fcn.0045a9f4
xor ebx, ebx
nop
add esp, 0xfffffff4
push ebx
call fcn.0042af1c
add esp, 0x10
inc ebx
cmp ebx, 0x1f
jle 0x4739a0
mov eax, esi
lea esp, [ebp - 0x828]
pop ebx
pop esi
pop edi
leave
ret