Function at 0x40ede8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x234
cmp dword [ebp + 8], 0
je 0x40ee15
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40ee15
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40ee15
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x40ee1f
mov eax, 0xffffffff
jmp 0x40f104
mov dword [esp + 4], 0x2707
mov dword [esp], 0x42e51e
call fcn.004121b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x40ee46
mov eax, 0xffffffff
jmp 0x40f104
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x40efa3
call fcn.00416cc0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00417240
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e475
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417d30
mov dword [esp], str.update_check
call fcn.00417240
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e538
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417d30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call fcn.00417240
mov dword [esp + 8], eax
mov dword [esp + 4], str.currentVersion
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417d30
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00412634
test eax, eax
je 0x40ef04
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040e669
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004122df
mov eax, 0xffffffff
jmp 0x40f104
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040e669
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00412310
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004122df
cmp dword [ebp - 0x14], 0
jne 0x40ef38
mov eax, 0xffffffff
jmp 0x40f104
mov dword [esp + 4], 0x42e54b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00416d50
mov dword [esp], eax
call fcn.004176c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x40ef71
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0040e669
mov eax, 0
jmp 0x40f104
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0040e669
mov dword [esp + 4], 0x2707
mov dword [esp], 0x42e51e
call fcn.004121b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x40efa3
mov eax, 0xffffffff
jmp 0x40f104
call fcn.00416cc0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00417240
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e475
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417d30
mov dword [esp], str.update_request
call fcn.00417240
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42e538
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417d30
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00412634
test eax, eax
je 0x40f02b
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040e669
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004122df
mov eax, 0xffffffff
jmp 0x40f104
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040e669
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004124c6
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40f062
mov eax, 0xffffffff
jmp 0x40f104
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 fcn.0040e63c
mov dword [esp + 4], 0x42e574
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f0d1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x40f104
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 sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 1
mov edi, dword [ebp - 4]
leave
ret