Function at 0x407e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40fbba
mov eax, dword fs:[0]
push eax
sub esp, 0x340
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43ce6c]
xor eax, esp
push eax
lea eax, [esp + 0x354]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x364]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
or eax, 0xffffffff
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x35c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
call edx
mov ebx, dword [sym.imp.MSVCR90.dll__stricmp]
test al, al
je 0x407f16
mov eax, dword [str.name]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
push eax
call ebx
add esp, 8
test eax, eax
je 0x407f61
push 0xef18
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
push edi
push 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
push eax
lea ecx, [esp + 0x18]
push str.Unknown_attribute___s__in__Connection_...__field_in_configuration_file
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
jmp 0x407f4b
push 0xef18
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
push edi
push 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
lea edx, [esp + 0x14]
push str.Must_name__Connection__field_in_configuration_file
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 8
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push edi
push edi
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x408145
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
lea eax, [esp + 0x1c4]
mov dword [esp + 0x2c], eax
lea ecx, [ecx]
mov ecx, dword [str.TxIP]
mov edx, dword [esi]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x407fab
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [esp + 0x18], eax
jmp 0x408132
mov ecx, dword [str.RxIP]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x407fd4
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [esp + 0x1c], eax
jmp 0x408132
mov ecx, dword [str.TxUDP]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x40800c
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
call edi
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x2c], ecx
jmp 0x408132
mov ecx, dword [str.RxUDP]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x408044
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
call edi
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esp + ecx*4 + 0x34], eax
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x408132
mov ecx, dword [str.TxRate]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x408073
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
call edi
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x408132
mov ecx, dword [str.WXR_Port]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x4080a2
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
call edi
add esp, 4
mov dword [esp + 0x30], eax
jmp 0x408132
mov ecx, dword [str.TAWS_Port]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
mov edx, dword [esi]
add esp, 8
test eax, eax
jne 0x4080ce
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
call edi
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x408132
mov ecx, dword [str.MachineIP]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
add esp, 8
test eax, eax
je 0x408132
mov ecx, dword [str.Wired]
mov edx, dword [esi]
mov eax, dword [edx]
push ecx
mov ecx, esi
call eax
push eax
call ebx
add esp, 8
test eax, eax
je 0x408132
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x18]
push str.Do_not_understand___s__within__Connection__...___Connection__in_configuration_file_n
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0
push 2
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x407f80
xor edi, edi
cmp dword [esp + 0x20], edi
jne 0x40816b
push 0xef1a
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push edi
push 1
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
mov ebx, dword [esp + 0x18]
cmp ebx, edi
je 0x408179
cmp dword [esp + 0x1c], edi
jne 0x40819f
push 0xef1a
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push edi
push 1
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
push 0x1a0
call sub.mfc90.dll_Ordinal_798
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x35c], 1
cmp esi, edi
je 0x4081f5
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
push edi
push ecx
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x1d8]
push ecx
push ebx
push edx
push eax
mov ecx, esi
call fcn.00401e60
jmp 0x4081f7
xor eax, eax
mov byte [esp + 0x35c], 0
cmp eax, edi
jne 0x40822d
lea ecx, [esp + 0x14]
push str.Creation_of_A664_Connection_object_failed_n
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 8
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push edi
push 2
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x354]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret