Function at 0x40edf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x234
cmp dword [ebp + 8], 0
je 0x40ee21
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40ee21
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40ee21
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x40ee2b
mov eax, 0xffffffff
jmp 0x40f110
mov dword [esp + 4], 0x2707
mov dword [esp], 0x42e51e
call dbg.eboros_utils_socket_connect
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x40ee52
mov eax, 0xffffffff
jmp 0x40f110
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x40efaf
call sym._json_object
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._json_string
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e475
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_object_set_new
mov dword [esp], str.update_check
call sym._json_string
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e53a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_object_set_new
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call sym._json_string
mov dword [esp + 8], eax
mov dword [esp + 4], str.currentVersion
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_object_set_new
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_jtp_write
test eax, eax
je 0x40ef10
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_decref_1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_socket_close
mov eax, 0xffffffff
jmp 0x40f110
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_decref_1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_jtp_read
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_socket_close
cmp dword [ebp - 0x14], 0
jne 0x40ef44
mov eax, 0xffffffff
jmp 0x40f110
mov dword [esp + 4], 0x42e54d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._json_object_get
mov dword [esp], eax
call sym._json_integer_value
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x40ef7d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._json_decref_1
mov eax, 0
jmp 0x40f110
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._json_decref_1
mov dword [esp + 4], 0x2707
mov dword [esp], 0x42e51e
call dbg.eboros_utils_socket_connect
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x40efaf
mov eax, 0xffffffff
jmp 0x40f110
call sym._json_object
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._json_string
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e475
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_object_set_new
mov dword [esp], str.update_request
call sym._json_string
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e53a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_object_set_new
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_jtp_write
test eax, eax
je 0x40f037
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_decref_1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_socket_close
mov eax, 0xffffffff
jmp 0x40f110
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._json_decref_1
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.eboros_utils_jtp_readRaw
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40f06e
mov eax, 0xffffffff
jmp 0x40f110
mov dword [ebp - 0x224], 0
lea edx, [ebp - 0x220]
mov eax, 0
mov ecx, 0x7f
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_e_wings_new.exe
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sym._sprintf_3
mov dword [esp + 4], 0x42e576
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f0dd
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._free
mov eax, 0xffffffff
jmp 0x40f110
mov eax, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, 1
mov edi, dword [ebp - 4]
leave
ret