Function at 0x517460
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dca3d
mov eax, dword fs:[0]
push eax
mov eax, 0xa4fc
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0xa4f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xa510]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov edi, ecx
push eax
mov dword [esp + 0x18], edi
call fcn.00515ac0
push str.wc.ini
push eax
lea ecx, [esp + 0xfc]
xor ebx, ebx
push ecx
mov dword [esp + 0xa528], ebx
call fcn.004041b0
add esp, 0x10
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
mov byte [esp + 0xa518], 2
jb 0x5174ee
mov edx, dword [esp + 0x20]
push edx
call fcn.005a1b1d
add esp, 4
lea eax, [esp + 0xd4]
mov esi, 0xf
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00515ce0
push str..enc
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0xa528], 3
call fcn.004041b0
add esp, 0x10
push ebx
push 0x63a990
lea ecx, [esp + 0xc0]
mov byte [esp + 0xa520], 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.00408ea0
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xa518], 5
jae 0x51757f
lea eax, [esp + 0xa0]
push eax
call fcn.00514170
add esp, 4
test eax, eax
je 0x5175c3
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x5175a3
lea eax, [esp + 0xa0]
push 0x63b988
push eax
call fcn.005bd438
add esp, 8
cmp eax, ebx
je 0x5175c3
push eax
call fcn.005bd8f3
add esp, 4
jmp 0x5177f9
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x5175da
lea eax, [esp + 0xf4]
push eax
call fcn.00514170
add esp, 4
test eax, eax
je 0x5176bb
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x517602
lea eax, [esp + 0xf4]
push eax
push 0x104
push edi
call fcn.005be4fe
add esp, 0xc
cmp dword [esp + 0xd0], ebp
jb 0x51762a
mov eax, dword [esp + 0xbc]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xb4], ebp
mov byte [esp + 0xbc], bl
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], esi
jb 0x517658
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xec], ebp
mov byte [esp + 0xa0], bl
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
jb 0x517686
mov edx, dword [esp + 0xd8]
push edx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x5176b4
mov eax, dword [esp + 0xf4]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, edi
jmp 0x5178f7
lea ecx, [esp + 0x38]
call fcn.005a1710
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 6
call fcn.005a1840
cmp eax, ebx
je 0x5177e8
push 0x3ff
lea ecx, [esp + 0x111]
push ebx
push ecx
mov byte [esp + 0x24], bl
mov word [esp + 0x25], bx
mov byte [esp + 0x118], bl
call fcn.005c0cf0
add esp, 0xc
push 0x400
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x10d]
mov al, byte [esp + 0x10c]
push 1
lea edx, [esp + 0x1c]
mov byte [esp + 0x1d], cl
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x20], al
call fcn.005a1770
mov edi, eax
cmp edi, ebx
je 0x5177e4
mov ecx, edi
call fcn.005a17e0
mov esi, eax
cmp esi, ebx
je 0x5177d8
lea eax, [esp + 0x1c]
push eax
call fcn.00515ac0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0xa524], 7
call fcn.00407630
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa518], 6
call fcn.0040b640
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x5177a4
lea eax, [esp + 0xa0]
lea ecx, [esp + 0xb8]
push ecx
push eax
push esi
call fcn.00517050
add esp, 0xc
test eax, eax
je 0x5177d1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0xa8]
call fcn.00407630
mov ecx, esi
call fcn.005a1820
mov ecx, edi
call fcn.005a17c0
mov esi, 0xf
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 5
call fcn.005a1760
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x517810
lea eax, [esp + 0xa0]
push eax
call fcn.00514170
add esp, 4
test eax, eax
je 0x517a2f
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x517838
lea eax, [esp + 0xa0]
push 0x63b988
push eax
call fcn.005bd438
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x51791f
cmp dword [esp + 0xd0], ebp
jb 0x517869
mov eax, dword [esp + 0xbc]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x517897
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xec], ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
jb 0x5178c5
mov edx, dword [esp + 0xd8]
push edx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x5178f3
mov eax, dword [esp + 0xf4]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4f8]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xa508
ret
push 0x9fff
lea ecx, [esp + 0x511]
push ebx
push ecx
mov byte [esp + 0x518], bl
call fcn.005c0cf0
push edi
push 0xa000
lea edx, [esp + 0x520]
push 1
push edx
call fcn.005be7ff
mov esi, eax
add esp, 0x1c
cmp esi, 0xa00
jle 0x517960
mov esi, 0xa00
push edi
call fcn.005bd8f3
push esi
lea esi, [esp + 0x514]
call fcn.00516770
add esp, 8
test eax, eax
jle 0x5179cc
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x517991
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x50c]
push ecx
push eax
call fcn.005141a0
mov eax, dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x108], ebp
jae 0x5179b9
lea eax, [esp + 0xf4]
mov edx, dword [esp + 0x14]
push eax
push 0x104
push edx
call fcn.005be4fe
add esp, 0xc
mov edi, dword [esp + 0x14]
mov esi, 0xf
cmp dword [esp + 0xcc], ebx
je 0x517611
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x5179f9
lea eax, [esp + 0xbc]
push eax
call fcn.00514170
add esp, 4
test eax, eax
je 0x517611
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x517a21
lea eax, [esp + 0xbc]
push eax
call fcn.0050ba00
add esp, 4
jmp 0x517611
cmp dword [esp + 0xec], ebp
mov eax, dword [esp + 0xd8]
jae 0x517a46
lea eax, [esp + 0xd8]
push eax
push 0x104
push edi
call fcn.005be4fe
add esp, 0xc
jmp 0x5179d5