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

Disassembly:
push 0xffffffffffffffff
push 0x5d284d
mov eax, dword fs:[0]
push eax
mov eax, 0xa4fc
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0xa4f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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.00514b80
push str.wc.ini
push eax
lea ecx, [esp + 0xfc]
xor ebx, ebx
push ecx
mov dword [esp + 0xa528], ebx
call fcn.00404a60
add esp, 0x10
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
mov byte [esp + 0xa518], 2
jb 0x51db8e
mov edx, dword [esp + 0x20]
push edx
call fcn.00595eb8
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.00514da0
push str..enc
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0xa528], 3
call fcn.00404a60
add esp, 0x10
push ebx
push 0x62b600
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.00409790
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xa518], 5
jae 0x51dc1f
lea eax, [esp + 0xa0]
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x51dc63
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51dc43
lea eax, [esp + 0xa0]
push 0x62c568
push eax
call fcn.005b1ae9
add esp, 8
cmp eax, ebx
je 0x51dc63
push eax
call fcn.005b1fa4
add esp, 4
jmp 0x51de99
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51dc7a
lea eax, [esp + 0xf4]
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x51dd5b
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51dca2
lea eax, [esp + 0xf4]
push eax
push 0x104
push edi
call fcn.005b2535
add esp, 0xc
cmp dword [esp + 0xd0], ebp
jb 0x51dcca
mov eax, dword [esp + 0xbc]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xb4], ebp
mov byte [esp + 0xbc], bl
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], esi
jb 0x51dcf8
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xec], ebp
mov byte [esp + 0xa0], bl
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
jb 0x51dd26
mov edx, dword [esp + 0xd8]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x51dd54
mov eax, dword [esp + 0xf4]
push eax
call fcn.00595eb8
add esp, 4
mov eax, edi
jmp 0x51df97
lea ecx, [esp + 0x38]
call fcn.00595ab0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 6
call fcn.00595be0
cmp eax, ebx
je 0x51de88
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.005b5540
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.00595b10
mov edi, eax
cmp edi, ebx
je 0x51de84
mov ecx, edi
call fcn.00595b80
mov esi, eax
cmp esi, ebx
je 0x51de78
lea eax, [esp + 0x1c]
push eax
call fcn.00514b80
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0xa524], 7
call fcn.00407e40
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa518], 6
call fcn.0040bf30
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51de44
lea eax, [esp + 0xa0]
lea ecx, [esp + 0xb8]
push ecx
push eax
push esi
call fcn.0051d6f0
add esp, 0xc
test eax, eax
je 0x51de71
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0xa8]
call fcn.00407e40
mov ecx, esi
call fcn.00595bc0
mov ecx, edi
call fcn.00595b60
mov esi, 0xf
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov byte [esp + 0xa518], 5
call fcn.00595b00
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51deb0
lea eax, [esp + 0xa0]
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x51e0cf
cmp dword [esp + 0xb4], ebp
mov eax, dword [esp + 0xa0]
jae 0x51ded8
lea eax, [esp + 0xa0]
push 0x62c568
push eax
call fcn.005b1ae9
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x51dfbf
cmp dword [esp + 0xd0], ebp
jb 0x51df09
mov eax, dword [esp + 0xbc]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x51df37
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xec], ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
jb 0x51df65
mov edx, dword [esp + 0xd8]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x51df93
mov eax, dword [esp + 0xf4]
push eax
call fcn.00595eb8
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.005b1988
add esp, 0xa508
ret
push 0x9fff
lea ecx, [esp + 0x511]
push ebx
push ecx
mov byte [esp + 0x518], bl
call fcn.005b5540
push edi
push 0xa000
lea edx, [esp + 0x520]
push 1
push edx
call fcn.005b2836
mov esi, eax
add esp, 0x1c
cmp esi, 0xa00
jle 0x51e000
mov esi, 0xa00
push edi
call fcn.005b1fa4
push esi
lea esi, [esp + 0x514]
call fcn.0051ce10
add esp, 8
test eax, eax
jle 0x51e06c
cmp dword [esp + 0x108], ebp
mov eax, dword [esp + 0xf4]
jae 0x51e031
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x50c]
push ecx
push eax
call fcn.0051ae40
mov eax, dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x108], ebp
jae 0x51e059
lea eax, [esp + 0xf4]
mov edx, dword [esp + 0x14]
push eax
push 0x104
push edx
call fcn.005b2535
add esp, 0xc
mov edi, dword [esp + 0x14]
mov esi, 0xf
cmp dword [esp + 0xcc], ebx
je 0x51dcb1
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x51e099
lea eax, [esp + 0xbc]
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x51dcb1
cmp dword [esp + 0xd0], ebp
mov eax, dword [esp + 0xbc]
jae 0x51e0c1
lea eax, [esp + 0xbc]
push eax
call fcn.00504080
add esp, 4
jmp 0x51dcb1
cmp dword [esp + 0xec], ebp
mov eax, dword [esp + 0xd8]
jae 0x51e0e6
lea eax, [esp + 0xd8]
push eax
push 0x104
push edi
call fcn.005b2535
add esp, 0xc
jmp 0x51e075