Function at 0x403810
Capabilities:
Check if file exists
Create directory
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4755f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.004036f0
push 0x50
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.http:__f3.file.766.com_cf_firebox_db_FireBoxVersion.txt
call fcn.004025d0
lea eax, [esp + 0x18]
push eax
call fcn.00441960
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x30], 0
je 0x403aee
push 0x49d614
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x47dc5c
call fcn.004025d0
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov byte [esp + 0x40], 1
call fcn.00401700
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x3c], 0
call fcn.00441780
push str.766DIY
lea edx, [esp + 0x28]
push 0x49d63c
push edx
call fcn.00403630
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x18
push eax
call esi
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x403954
push str.766DIY
lea eax, [esp + 0x1c]
push 0x49d63c
push eax
call fcn.00403630
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40393d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x403954
push 0
push 0
push 0x47dc08
call fcn.0046bf79
jmp 0x403aff
push str.766DATE
lea eax, [esp + 0x1c]
push 0x49d63c
push eax
call fcn.00403630
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x4039ef
push str.766DATE
lea eax, [esp + 0x1c]
push 0x49d63c
push eax
call fcn.00403630
mov eax, dword [eax]
add esp, 0xc
xor esi, esi
push esi
push eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4039f1
push esi
push esi
push 0x47dbb0
call fcn.0046bf79
jmp 0x403aff
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov bl, 2
push str.Update
mov byte [esp + 0x3c], bl
call fcn.004025d0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Software766766CF_Firebox
mov byte [esp + 0x40], 3
call fcn.004025d0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call fcn.0043b1d0
cmp dword [esp + 0x1c], esi
je 0x403aa7
push esi
push esi
push 0x47db5c
call fcn.0046bf79
push str.766UpdateDate.exe
lea ecx, [esp + 0x1c]
push 0x49d63c
push ecx
call fcn.00403630
mov eax, dword [eax]
add esp, 0xc
push 1
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x403aff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
jmp 0x403aff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x403aba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x403ad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0
push 0
push 0x47db08
call fcn.0046bf79
or ebp, 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x403b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret