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

Disassembly:
push 0x3d8
mov eax, 0x49ca54
call fcn.00454d9d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x384], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x23
push ebx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], ebx
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x388], ebx
mov dword [ebp - 0x374], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x360], eax
cmp eax, 1
jne 0x4316a0
mov eax, 0x80047bfe
mov dword [ebp - 0x360], eax
cmp eax, ebx
jl 0x431bb4
lea eax, [ebp - 0x134]
push 0x4b2920
push eax
mov byte [ebp - 0x30], bl
call fcn.00498820
pop ecx
pop ecx
lea eax, [ebp - 0x3e4]
push eax
mov dword [ebp - 4], ebx
call fcn.0042ee65
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], 1
call fcn.0042eeb2
cmp al, bl
je 0x431833
push 0x4b2934
lea eax, [ebp - 0x3e4]
call fcn.0042ea1f
cmp eax, ebx
je 0x431711
push 0x4b293c
call fcn.0042ea1f
cmp eax, ebx
je 0x431711
mov esi, eax
jmp 0x431713
xor esi, esi
cmp esi, ebx
je 0x43172d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
cmp eax, ebx
je 0x43172d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, eax
jmp 0x43172f
xor esi, esi
cmp esi, ebx
je 0x431833
push 0x4b2948
mov eax, esi
call fcn.0042ea79
mov edi, eax
push 0x4b2950
mov eax, esi
call fcn.0042ea79
mov dword [ebp - 0x368], eax
push 0x4b2954
mov eax, esi
call fcn.0042ea79
mov esi, eax
cmp edi, ebx
je 0x431778
mov eax, edi
call fcn.0042ee4b
mov dword [ebp - 0x364], eax
jmp 0x43177e
mov dword [ebp - 0x364], ebx
mov eax, dword [ebp - 0x368]
cmp eax, ebx
je 0x431795
call fcn.0042ee4b
mov dword [ebp - 0x368], eax
jmp 0x43179b
mov dword [ebp - 0x368], ebx
cmp esi, ebx
je 0x4317aa
mov eax, esi
call fcn.0042ee4b
mov edi, eax
jmp 0x4317ac
xor edi, edi
mov esi, 0xfde9
cmp dword [ebp - 0x364], ebx
je 0x4317ec
push esi
lea eax, [ebp - 0x36c]
push eax
push dword [ebp - 0x364]
call fcn.00434eb5
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x360], eax
jge 0x4317ec
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], bl
call fcn.0042e76a
jmp 0x431a71
cmp dword [ebp - 0x368], ebx
je 0x431814
push esi
lea eax, [ebp - 0x370]
push eax
push dword [ebp - 0x368]
call fcn.00434eb5
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x360], eax
jl 0x4317d9
cmp edi, ebx
je 0x431833
push esi
lea eax, [ebp - 0x380]
push eax
push edi
call fcn.00434eb5
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x360], eax
jl 0x4317d9
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], bl
call fcn.0042e76a
jmp 0x43184b
cmp dword [ebp - 0x36c], ebx
je 0x431867
cmp dword [ebp - 0x370], ebx
je 0x431867
cmp dword [ebp - 0x380], ebx
jne 0x431a71
lea eax, [ebp - 0x35c]
push eax
push 1
push ebx
push 0x2e
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, 0x80004005
mov dword [ebp - 0x360], eax
cmp eax, edi
jne 0x431894
mov eax, 0x80047bfe
mov dword [ebp - 0x360], eax
cmp eax, ebx
jl 0x431bb4
xor eax, eax
mov word [ebp - 0x154], ax
lea eax, [ebp - 0x35c]
push 0x4b2960
push eax
call fcn.004982c7
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x35c]
push eax
mov dword [ebp - 0x364], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x368], eax
cmp eax, 0xffffffff
je 0x431a1d
lea ecx, [ebp - 0x394]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43190c
call fcn.0043506f
mov dword [ebp - 0x360], eax
jmp 0x4319c4
mov ecx, dword [ebp - 0x394]
mov eax, dword [ebp - 0x390]
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x4319c4
jb 0x431934
cmp ecx, 0x3fff
ja 0x4319c4
add dword [ebp - 0x394], 1
mov eax, dword [ebp - 0x394]
push 0x4c78f8
adc dword [ebp - 0x390], ebx
inc eax
push eax
call fcn.00457cf1
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x431967
mov dword [ebp - 0x360], 0x8007000e
jmp 0x4319bd
push ebx
lea eax, [ebp - 0x398]
push eax
push dword [ebp - 0x394]
push esi
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43198d
call fcn.0043506f
jmp 0x4319b7
mov eax, dword [ebp - 0x398]
cmp eax, dword [ebp - 0x394]
jbe 0x4319a3
mov dword [ebp - 0x360], edi
jmp 0x4319bd
mov byte [eax + esi], bl
push ebx
lea eax, [ebp - 0x364]
push eax
push esi
call fcn.00434eb5
add esp, 0xc
mov dword [ebp - 0x360], eax
push esi
call fcn.0044fdab
pop ecx
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x360], ebx
jl 0x431bbc
cmp dword [ebp - 0x364], ebx
je 0x431a1d
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x378]
push eax
mov eax, dword [ebp - 0x364]
call fcn.00430d01
push dword [ebp - 0x364]
mov dword [ebp - 0x360], eax
call fcn.0044fdab
add esp, 0xc
cmp dword [ebp - 0x360], ebx
jl 0x431bbc
lea eax, [ebp - 0x374]
push eax
mov esi, 0x4b2ad0
push esi
mov eax, 0x4b2980
call fcn.004339fa
mov edi, 0x8007000e
pop ecx
pop ecx
mov dword [ebp - 0x360], eax
cmp eax, edi
je 0x431a71
cmp dword [ebp - 0x374], ebx
jne 0x431a67
lea eax, [ebp - 0x374]
push eax
push esi
mov eax, 0x4b2a28
call fcn.004339fa
pop ecx
pop ecx
mov dword [ebp - 0x360], eax
cmp eax, edi
je 0x431a71
mov dword [ebp - 0x360], ebx
cmp dword [ebp - 0x360], ebx
jl 0x431bbc
mov edi, dword [ebp - 0x370]
cmp edi, ebx
je 0x431aa5
push 0x4ad690
push edi
call fcn.004580ce
pop ecx
pop ecx
test eax, eax
jne 0x431aa5
push 0x4ad688
push edi
call fcn.004982f5
pop ecx
pop ecx
mov esi, dword [ebp - 0x388]
cmp esi, ebx
je 0x431acd
push 0x4ad690
push esi
call fcn.004580ce
pop ecx
pop ecx
test eax, eax
jne 0x431acd
push 0x4ad688
push esi
call fcn.004982f5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x360], ebx
cmp ecx, ebx
je 0x431b1a
cmp edi, ebx
je 0x431b1a
mov eax, dword [ebp - 0x380]
cmp eax, ebx
je 0x431b1a
mov edx, dword [ebp - 0x38c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x384]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], ebx
mov dword [ecx], eax
mov dword [ebp - 0x380], ebx
jmp 0x431bd4
mov eax, dword [ebp - 0x378]
cmp eax, ebx
je 0x431b5e
cmp esi, ebx
je 0x431b5e
mov edx, dword [ebp - 0x374]
cmp edx, ebx
je 0x431b5e
mov ecx, dword [ebp - 0x38c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x384]
mov dword [eax], esi
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x388], ebx
mov dword [eax], edx
mov dword [ebp - 0x374], ebx
jmp 0x431bd4
cmp ecx, ebx
je 0x431b84
cmp edi, ebx
je 0x431b84
mov eax, dword [ebp - 0x38c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x36c], ebx
mov dword [eax], edi
mov dword [ebp - 0x370], ebx
jmp 0x431bcc
cmp eax, ebx
je 0x431baa
cmp esi, ebx
je 0x431baa
mov ecx, dword [ebp - 0x38c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x378], ebx
mov dword [eax], esi
mov dword [ebp - 0x388], ebx
jmp 0x431bcc
mov dword [ebp - 0x360], 1
cmp dword [ebp - 0x360], ebx
je 0x431bd4
mov eax, dword [ebp - 0x38c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x384]
mov dword [eax], ebx
mov eax, dword [ebp - 0x37c]
mov dword [eax], ebx
push dword [ebp - 0x374]
call fcn.0044fdab
pop ecx
push dword [ebp - 0x388]
call fcn.0044fdab
pop ecx
push dword [ebp - 0x378]
call fcn.0044fdab
pop ecx
push dword [ebp - 0x380]
call fcn.0044fdab
pop ecx
push dword [ebp - 0x370]
call fcn.0044fdab
pop ecx
push dword [ebp - 0x36c]
call fcn.0044fdab
mov eax, dword [ebp - 0x360]
pop ecx
call fcn.00454df9
ret