Function at 0x423830
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x83c]
sub esp, 0x83c
push 0xffffffffffffffff
push 0x490910
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x848]
mov esi, dword [ebp + 0x844]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.00421990
xor ebx, ebx
push 0x7fe
lea edx, [ebp + 0x3a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 4], ebx
mov word [ebp + 0x38], cx
call fcn.00477c40
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4238c4
push str.apreg.url
push esi
lea eax, [ebp + 0x38]
push 0x49a034
push eax
call fcn.00401570
add esp, 0x10
jmp 0x4238d6
push esi
lea ecx, [ebp + 0x38]
push 0x495010
push ecx
call fcn.00401570
add esp, 0xc
lea edx, [ebp + 0x38]
push 0x492c18
push edx
call fcn.00477f07
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42394b
push 2
push ebx
push esi
call fcn.0047aafc
push esi
call fcn.0047aa07
push ebx
push ebx
push esi
mov edi, eax
call fcn.0047aafc
add esp, 0x1c
lea eax, [edi + 1]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.004219f0
lea eax, [edi + 1]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00421370
push eax
call fcn.00477c40
add esp, 0xc
push esi
push 1
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.00421370
push eax
call fcn.00478798
push esi
call fcn.00477fdc
add esp, 0x14
jmp 0x4239c9
lea eax, [ebp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x423951
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.004219f0
push esi
push ebx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00421370
push eax
call fcn.00477c40
add esp, 0xc
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x423997
xor eax, eax
jmp 0x4239b0
lea esi, [eax + eax]
mov eax, esi
call fcn.00478cc0
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x38]
push ecx
push eax
call fcn.0041a1b0
push eax
push 0x49b31c
push ebx
lea ecx, [ebp - 0x24]
call fcn.00421370
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x49b318
push ebx
lea ecx, [ebp - 0x24]
call fcn.00421370
push eax
call fcn.0047b616
add esp, 8
cmp eax, ebx
jne 0x423a10
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4239f4
push eax
call fcn.00477a90
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00477a90
add esp, 4
xor eax, eax
jmp 0x423b29
push 0x49b314
push ebx
call fcn.0047b616
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x423ad0
push 0x3d
push edi
call fcn.0047a190
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423a10
mov byte [esi], bl
push edi
inc esi
call fcn.0047b5b4
mov eax, 7
xor ecx, ecx
xor edx, edx
add esp, 4
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], dx
lea eax, [ebp]
push eax
push edi
mov edi, dword [ebp - 0x2c]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004208e0
lea ecx, [ebp + 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.004208e0
mov ecx, dword [ebp - 0x28]
lea edx, [ebp]
push edx
call fcn.004236c0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp + 0x34], esi
jb 0x423aa6
mov eax, dword [ebp + 0x20]
push eax
call fcn.00477a90
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], cx
cmp dword [ebp + 0x18], esi
jb 0x423a10
mov edx, dword [ebp + 4]
push edx
call fcn.00477a90
add esp, 4
jmp 0x423a10
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.CInternal::parseAPReg
push str._UNO___s___d
call fcn.00419c60
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, ebx
je 0x423b0f
push eax
call fcn.00477a90
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00477a90
add esp, 4
mov eax, 1
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x838]
xor ecx, ebp
call fcn.00477bf8
add ebp, 0x83c
mov esp, ebp
pop ebp
ret 8