Function at 0x4d0b85
Capabilities:
Check if file exists
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x320
mov eax, 0x588250
call fcn.004fb9d0
push ecx
mov dword [ebp - 0x2e4], ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push str.sgpromote
call fcn.0043479c
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push str.sogouexplorer.exe
call fcn.0043479c
mov byte [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2e4]
call fcn.004c3632
cmp al, bl
jne 0x4d123a
lea ecx, [ebp - 0x32c]
call fcn.00432a3a
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x314]
call fcn.004a86e3
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push str.SogouExplorer
call fcn.0043479c
mov byte [ebp - 4], 5
push ecx
mov eax, esp
mov dword [ebp - 0x2c8], esp
push eax
lea ecx, [ebp - 0x32c]
call fcn.0049bb8c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2f0]
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x32c]
call fcn.0049be74
mov byte [ebp - 4], 7
push dword [ebp - 0x2f0]
lea ecx, [ebp - 0x314]
call fcn.004b6e50
cmp eax, ebx
je 0x4d0dea
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 0x5a3cb4
lea ecx, [ebp - 0x314]
call fcn.004a16b2
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x2d8], eax
call fcn.004a46c4
test eax, eax
jne 0x4d0dde
push 0x10
lea ecx, [ebp - 0x314]
call fcn.004a1690
test eax, eax
je 0x4d0dde
push ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push str.uhistory3.db
call fcn.0043479c
mov byte [ebp - 4], 8
push ecx
mov eax, esp
mov dword [ebp - 0x2c8], esp
push eax
lea ecx, [ebp - 0x314]
call fcn.004c94f3
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2bc]
push eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x32c]
call fcn.0049be74
mov byte [ebp - 4], 0xa
push dword [ebp - 0x2bc]
call esi
test eax, eax
je 0x4d0d35
push 0x5a5800
push str.urlid
push str.tb_urlinfo
push ecx
lea eax, [ebp - 0x2bc]
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2e4]
call fcn.004cb9c1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push str.HistoryUrl3.db
call fcn.0043479c
mov byte [ebp - 4], 0xc
push ecx
mov eax, esp
mov dword [ebp - 0x2c8], esp
push eax
lea ecx, [ebp - 0x314]
call fcn.004c94f3
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2dc]
push eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x32c]
call fcn.0049be74
mov byte [ebp - 4], 0xe
push dword [ebp - 0x2bc]
call esi
test eax, eax
je 0x4d0dba
push edi
push edi
push str.UserRankUrl
push ecx
lea eax, [ebp - 0x2bc]
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2e4]
call fcn.004cb9c1
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2dc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2bc]
add ecx, 0xfffffff0
call fcn.004310e3
cmp dword [ebp - 0x2d8], ebx
jne 0x4d0c6f
lea ecx, [ebp - 0x314]
call fcn.004a4686
push ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push str.SogouExplorercommcfg.xml
call fcn.0043479c
mov byte [ebp - 4], 0x12
push ecx
mov eax, esp
mov dword [ebp - 0x2c8], esp
push eax
lea ecx, [ebp - 0x32c]
call fcn.0049bb8c
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x2e8]
push eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x32c]
call fcn.0049be74
mov byte [ebp - 4], 0x14
push ebx
push ebx
push str.main
push dword [ebp - 0x2e8]
lea ecx, [ebp - 0x2b8]
call fcn.004c15ff
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2b8]
call fcn.004a17dd
cmp eax, ebx
je 0x4d11e9
mov ecx, eax
call fcn.004ea502
jmp 0x4d0e9a
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x4d0e82
mov eax, dword [eax]
push 0x59ac84
push eax
call fcn.00517e94
pop ecx
pop ecx
test eax, eax
je 0x4d0ea5
mov ecx, esi
call fcn.004ea526
mov esi, eax
cmp esi, ebx
jne 0x4d0e77
jmp 0x4d11e9
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x4d11e9
xor eax, eax
mov dword [ebp - 0x2d4], ebx
lea edi, [ebp - 0x2d0]
stosd dword es:[edi], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
add dword [ebp - 0x2d4], 0x400
push dword [ebp - 0x2d4]
adc dword [ebp - 0x2d0], ebx
call fcn.004f8908
push dword [ebp - 0x2d4]
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x2dc], edi
call fcn.004fc1f0
add esp, 0x10
push ebx
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ebx
push edi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [ebp - 0x2bc]
call fcn.004b82c7
mov byte [ebp - 4], 0x16
push str.unclosedpages
push esi
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 0x2bd], bl
call fcn.004afc78
mov byte [ebp - 4], 0x17
push 0x5adb78
lea ecx, [ebp - 0x2e0]
call fcn.00433ab0
push 0x5adb74
lea ecx, [ebp - 0x2e0]
call fcn.00433a48
push ecx
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push 0x5adb6c
call fcn.0043479c
mov byte [ebp - 4], 0x18
push ecx
lea eax, [ebp - 0x2e0]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x2fc]
push eax
mov byte [ebp - 4], 0x17
call fcn.004b3873
add esp, 0xc
mov byte [ebp - 4], 0x1a
xor esi, esi
cmp dword [ebp - 0x2f8], ebx
jle 0x4d11aa
cmp esi, ebx
jl 0x4d1240
cmp esi, dword [ebp - 0x2f8]
jge 0x4d1240
mov eax, dword [ebp - 0x2fc]
lea ecx, [eax + esi*4]
call fcn.0043c6a9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0049b524
mov byte [ebp - 4], 0x1b
push 8
pop edi
push edi
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x2ec], esp
push eax
call fcn.0043cf79
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x2e4]
call fcn.004c3942
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4d1055
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4d1060
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.004fa9a7
pop ecx
pop ecx
test eax, eax
je 0x4d10f9
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4d107c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004b40f5
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4d109d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004b40f5
mov edi, eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x2ec]
call fcn.004a6aeb
push eax
mov ecx, edi
call fcn.004a6aeb
push eax
lea ecx, [ebp - 0x2bc]
call fcn.004aff53
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x2c8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x2c4]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 0x2bd], 1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x1b
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0043c5c3
mov byte [ebp - 4], 0x1a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0043c5c3
inc esi
cmp esi, dword [ebp - 0x2f8]
jl 0x4d0fe8
cmp byte [ebp - 0x2bd], bl
je 0x4d11aa
mov eax, dword [ebp - 0x2bc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4d1155
push esi
lea ecx, [ebp - 0x2bc]
call fcn.00499af5
mov eax, dword [ebp - 0x2bc]
push esi
push eax
push dword [ebp - 0x2d4]
push dword [ebp - 0x2dc]
call fcn.004fa3ab
add esp, 0x10
push ebx
push ebx
push ebx
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax - 0xc]
push ebx
lea ecx, [ebp - 0x2d8]
push ecx
push eax
push dword [ebp - 0x2dc]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2fc]
call fcn.00433510
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x2e0]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x2bc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2b8]
call fcn.004a17ae
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2e8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2f0]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x314]
call fcn.004a8728
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x32c]
call fcn.00432a92
call fcn.004fba53
ret
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]