Function at 0x410e60
Capabilities:
Check if file exists
Enumerate files on windows
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49074b
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x57c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x594]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
call fcn.0040d1e0
mov ecx, eax
call fcn.00408250
push str.XLMaxthonSvr::SetMathonDefaultIsThunder
push 2
call fcn.0040d1e0
mov ecx, eax
call fcn.0040e0a0
test eax, eax
je 0x410ec9
add eax, 8
jmp 0x410ecb
xor eax, eax
push str.Enter_
push eax
call fcn.0040d500
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040d990
mov ecx, esi
call fcn.0040c6d0
call fcn.0040d1e0
mov ecx, eax
call fcn.00408270
mov ecx, ebp
call fcn.00410b00
test eax, eax
jne 0x410fea
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jb 0x410f15
mov eax, dword [ebp + 8]
jmp 0x410f18
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x18]
call fcn.0040f1b0
push 0xc
push str.Maxthon.exe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5a4], 0
call fcn.004109d0
push 0x3ff
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call fcn.0044c250
add esp, 0xc
cmp dword [ebp + 0x1c], edi
jb 0x410f66
mov ecx, dword [ebp + 8]
jmp 0x410f69
lea ecx, [ebp + 8]
lea edx, [esp + 0x190]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x410f70
lea eax, [esp + 0x190]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410f82
mov ecx, dword [str.Maxthon.exe]
mov edx, dword [0x498914]
mov dword [eax], ecx
mov ecx, dword [0x498918]
mov dword [eax + 4], edx
mov dl, byte [0x49891c]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x410ff1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x59c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410fea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4112c6
cmp dword [ebp + 0x1c], edi
jb 0x410ffb
mov ecx, dword [ebp + 8]
jmp 0x410ffe
lea ecx, [ebp + 8]
lea edx, [esp + 0x190]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x411005
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x4989b4
lea ecx, [esp + 0x194]
push ecx
mov edx, ecx
push edx
call esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [esp + 0x18], eax
test byte [esp + 0x50], 0x10
je 0x411273
cmp byte [esp + 0x7c], 0x2e
je 0x411273
cmp dword [ebp + 0x1c], edi
jb 0x411064
mov ecx, dword [ebp + 8]
jmp 0x411067
lea ecx, [ebp + 8]
lea edx, [esp + 0x190]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x411070
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x194]
push eax
mov ecx, eax
push ecx
call esi
push str.ConfigConfig.ini
lea edx, [esp + 0x194]
push edx
mov eax, edx
push eax
call esi
lea ecx, [esp + 0x190]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4110df
cmp byte [esp + 0x5a4], 0
je 0x4110c9
lea edx, [esp + 0x190]
push edx
push str.ThunderAgent.Agent.1
jmp 0x4110d3
lea eax, [esp + 0x190]
push eax
push 0
push str.Downloader
push str.Download
call ebx
cmp dword [ebp + 0x1c], edi
jb 0x4110e9
mov ecx, dword [ebp + 8]
jmp 0x4110ec
lea ecx, [ebp + 8]
lea edx, [esp + 0x190]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4110f3
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x194]
push edx
mov eax, edx
push eax
call esi
push str.ConfigPlugins.ini
lea ecx, [esp + 0x194]
push ecx
mov edx, ecx
push edx
call esi
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x411273
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41120a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edx, [ebp + 1]
push edx
call fcn.00418a40
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esi + ebp], 0
cmp byte [esi], 0xef
jne 0x4111f0
cmp byte [esi + 1], 0xbb
jne 0x4111f0
cmp byte [esi + 2], 0xbf
jne 0x4111f0
xor eax, eax
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x24]
push eax
add ebp, 0xfffffffe
push ebp
lea ecx, [esi + 3]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00418a4b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x5a4], 0
je 0x41123c
lea edx, [esp + 0x190]
push edx
push 0x498958
push str.Thunder
push str.Paths
call ebx
lea eax, [esp + 0x190]
push eax
push 0x498958
jmp 0x411262
lea ecx, [esp + 0x190]
push ecx
push 0x49851c
push str.Thunder
push str.Paths
call ebx
lea edx, [esp + 0x190]
push edx
push 0x49851c
push str.ThunderAtOnce
push str.Paths
call ebx
mov edi, 0x10
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411044
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x59c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x57c]
xor ecx, esp
call fcn.0044c23d
add esp, 0x58c
ret 4