Function at 0x40ee30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x416d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, ecx
push 0x41e0d0
mov eax, dword [esi + 0x16d8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x40ee9b
mov eax, dword [esi + 0x16d8]
push eax
push 0x41e060
push 2
push esi
call fcn.00401e10
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
push ebx
mov al, 0xcd
mov edx, dword [esi + 0x16f0]
push ebp
push edi
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x24]
mov byte [esp + 0x22], 0x13
push 4
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x16ec]
mov edi, dword [sym.imp.Stk1Util.dll_public:_static_int___cdecl_CMyUtil::ReverseBytesOrder_unsigned_char___int_]
mov byte [esp + 0x27], al
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call edi
lea ecx, [esp + 0x30]
push 4
push ecx
call edi
add esp, 0x10
lea ebp, [esi + 0x15d4]
lea edx, [esp + 0x20]
mov ecx, ebp
push 0xffffffffffffffff
push 0
push 0x100
push edx
call dword [sym.imp.HwaNetWork.dll_public:_int___thiscall_CHwaNetWork::SendHwaData_void_const___unsigned_long_int__struct_sockaddr_in_const___unsigned_int_]
push 0x1004
mov dword [esi + 0x16cc], 1
call sub.MFC42.DLL_operatornew
add esp, 4
xor ebx, ebx
mov ecx, esi
mov edi, eax
push ebx
push 0x41f528
mov dword [esp + 0x24], ebx
call fcn.0040add0
mov dword [esi + 0x16cc], 1
push 4
push edi
mov ecx, ebp
call dword [sym.imp.HwaSocket.dll_public:_unsigned_int___thiscall_CHwaSocket::GetSocket_void_const]
push eax
call fcn.00409aa0
add esp, 0xc
cmp eax, 4
jne 0x40f027
push 0x13
push edi
call fcn.004099d0
add esp, 8
test eax, eax
je 0x40f027
cmp byte [edi + 3], 0xff
je 0x40f000
push 0x400
push edi
mov ecx, ebp
call dword [sym.imp.HwaSocket.dll_public:_unsigned_int___thiscall_CHwaSocket::GetSocket_void_const]
push eax
call fcn.00409aa0
mov eax, dword [esp + 0x1c]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x38]
add ebx, 0x400
adc eax, 0
lea ecx, [esp + 0x30]
push eax
push ebx
push ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.Stk1Util.dll_public:_static_class_CString___cdecl_CMyUtil::FormatSizeStr_long_long___int64__]
mov edx, dword [eax]
mov dword [esp + 0x150], 0
push edx
push 0x41f514
push 0
push esi
call fcn.00401e10
add esp, 0x38
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call fcn.00414b42
mov eax, dword [esi + 0x16cc]
test eax, eax
jne 0x40ef3f
jmp 0x40f035
push 0
push 0x41f178
mov ecx, esi
call fcn.0040add0
push 0xfc
push edi
mov ecx, ebp
call dword [sym.imp.HwaSocket.dll_public:_unsigned_int___thiscall_CHwaSocket::GetSocket_void_const]
push eax
call fcn.00409aa0
add esp, 0xc
jmp 0x40f035
push 2
push 0x41f164
mov ecx, esi
call fcn.0040add0
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov ecx, esi
push 0
push 0x41f4fc
call fcn.0040add0
mov ecx, dword [esp + 0x120]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret