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

Disassembly:
push 0xffffffffffffffff
push 0x5d182d
mov eax, dword fs:[0]
push eax
mov eax, 0xa4fc
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0xa4f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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.00513b50
push str.wc.ini
push eax
lea ecx, [esp + 0xfc]
xor ebx, ebx
push ecx
mov dword [esp + 0xa528], ebx
call fcn.00404a40
add esp, 0x10
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
mov byte [esp + 0xa518], 2
jb 0x51cbee
mov edx, dword [esp + 0x20]
push edx
call fcn.00594e98
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.00513d70
push str..enc
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0xa528], 3
call fcn.00404a40
add esp, 0x10
push ebx
push 0x62a4a0
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.004098b0
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xa518], 5
jae 0x51cc7f
lea eax, [esp + 0xa0]
push eax
call fcn.00519e80
add esp, 4
test eax, eax
je 0x51ccc3
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51cca3
lea eax, [esp + 0xa0]
push 0x62b408
push eax
call fcn.005b0ac9
add esp, 8
cmp eax, ebx
je 0x51ccc3
push eax
call fcn.005b0f84
add esp, 4
jmp 0x51cef9
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51ccda
lea eax, [esp + 0xf4]
push eax
call fcn.00519e80
add esp, 4
test eax, eax
je 0x51cdbb
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51cd02
lea eax, [esp + 0xf4]
push eax
push 0x104
push edi
call fcn.005b1515
add esp, 0xc
cmp dword [esp + 0xd0], ebp
jb 0x51cd2a
mov eax, dword [esp + 0xbc]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xb4], ebp
mov byte [esp + 0xbc], bl
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], esi
jb 0x51cd58
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xec], ebp
mov byte [esp + 0xa0], bl
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
jb 0x51cd86
mov edx, dword [esp + 0xd8]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x51cdb4
mov eax, dword [esp + 0xf4]
push eax
call fcn.00594e98
add esp, 4
mov eax, edi
jmp 0x51cff7
lea ecx, [esp + 0x38]
call fcn.00594a90
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 6
call fcn.00594bc0
cmp eax, ebx
je 0x51cee8
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.005b4520
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.00594af0
mov edi, eax
cmp edi, ebx
je 0x51cee4
mov ecx, edi
call fcn.00594b60
mov esi, eax
cmp esi, ebx
je 0x51ced8
lea eax, [esp + 0x1c]
push eax
call fcn.00513b50
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0xa524], 7
call fcn.004080b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa518], 6
call fcn.0040c050
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51cea4
lea eax, [esp + 0xa0]
lea ecx, [esp + 0xb8]
push ecx
push eax
push esi
call fcn.0051c750
add esp, 0xc
test eax, eax
je 0x51ced1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0xa8]
call fcn.004080b0
mov ecx, esi
call fcn.00594ba0
mov ecx, edi
call fcn.00594b40
mov esi, 0xf
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 5
call fcn.00594ae0
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51cf10
lea eax, [esp + 0xa0]
push eax
call fcn.00519e80
add esp, 4
test eax, eax
je 0x51d12f
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51cf38
lea eax, [esp + 0xa0]
push 0x62b408
push eax
call fcn.005b0ac9
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x51d01f
cmp dword [esp + 0xd0], ebp
jb 0x51cf69
mov eax, dword [esp + 0xbc]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x51cf97
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xec], ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
jb 0x51cfc5
mov edx, dword [esp + 0xd8]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x51cff3
mov eax, dword [esp + 0xf4]
push eax
call fcn.00594e98
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.005b0968
add esp, 0xa508
ret
push 0x9fff
lea ecx, [esp + 0x511]
push ebx
push ecx
mov byte [esp + 0x518], bl
call fcn.005b4520
push edi
push 0xa000
lea edx, [esp + 0x520]
push 1
push edx
call fcn.005b1816
mov esi, eax
add esp, 0x1c
cmp esi, 0xa00
jle 0x51d060
mov esi, 0xa00
push edi
call fcn.005b0f84
push esi
lea esi, [esp + 0x514]
call fcn.0051be80
add esp, 8
test eax, eax
jle 0x51d0cc
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51d091
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x50c]
push ecx
push eax
call fcn.00519eb0
mov eax, dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x108], ebp
jae 0x51d0b9
lea eax, [esp + 0xf4]
mov edx, dword [esp + 0x14]
push eax
push 0x104
push edx
call fcn.005b1515
add esp, 0xc
mov edi, dword [esp + 0x14]
mov esi, 0xf
cmp dword [esp + 0xcc], ebx
je 0x51cd11
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x51d0f9
lea eax, [esp + 0xbc]
push eax
call fcn.00519e80
add esp, 4
test eax, eax
je 0x51cd11
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x51d121
lea eax, [esp + 0xbc]
push eax
call fcn.00503060
add esp, 4
jmp 0x51cd11
cmp dword [esp + 0xec], ebp
mov eax, dword [esp + 0xd8]
jae 0x51d146
lea eax, [esp + 0xd8]
push eax
push 0x104
push edi
call fcn.005b1515
add esp, 0xc
jmp 0x51d0d5