Function at 0x413780
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
mov eax, dword [0x44fba0]
push ebx
push esi
xor eax, ebp
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esi + 0xc14]
xor ebx, ebx
inc eax
push eax
lea ecx, [esp + 0x18]
push str.DirSvrInfo_d.ini
push ecx
mov dword [esp + 0x360], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov byte [esp + 0x34], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCR71.dll__fullpath]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
call dword [0x43c18c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov byte [esp + 0x354], 1
mov dword [esp + 0x1c], ebx
jmp 0x413850
push 1
lea eax, [esp + 0x14]
push str.ServerInfo_d
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0x240]
push edx
push 0x43d63a
push 0x43febc
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
mov esi, dword [0x43c1b8]
push eax
call esi
lea eax, [esp + 0x28]
push eax
push 0x104
lea ecx, [esp + 0x138]
push ecx
push 0x43d63a
push str.Name
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call esi
test eax, eax
jbe 0x41396e
lea edx, [esp + 0x130]
push edx
call dword [0x43cc14]
mov ebx, eax
test ebx, ebx
je 0x413963
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x20], 1
mov byte [esp + 0xf], 0
je 0x41395c
xor ecx, ecx
mov eax, dword [eax + ecx]
mov ecx, dword [eax]
push ecx
call dword [0x43cc1c]
lea esi, [esp + 0x238]
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x413934
test cl, cl
je 0x413930
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x413934
add eax, 2
add esi, 2
test cl, cl
jne 0x413910
xor eax, eax
jmp 0x413939
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x413942
mov byte [esp + 0xf], 1
mov eax, dword [ebx + 0xc]
inc edi
mov edx, dword [eax + edi*4]
test edx, edx
lea ecx, [edi*4]
jne 0x4138f7
mov al, byte [esp + 0xf]
test al, al
jne 0x41398e
push 0x440968
jmp 0x413968
push 0x440958
call dword [0x43c190]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jl 0x413850
jmp 0x4139a1
push 0x440948
mov dword [esp + 0x1c], 1
call dword [0x43c190]
call dword [0x43c18c]
mov esi, dword [esp + 0x24]
mov ecx, dword [0x44ff94]
sub eax, esi
test ecx, ecx
je 0x4139c7
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call fcn.004256a0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x344]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043146e
mov esp, ebp
pop ebp
ret