Function at 0x408ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43918a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x44e7a0]
push ebp
push esi
push edi
mov dword [esp + 0x64], eax
mov ebp, ecx
call sub.KERNEL32.dll_GetTickCount
lea edi, [ebp + 0x50]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x48]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0xc], esi
je 0x408e85
push ebx
mov bl, 1
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x408d6f
mov eax, dword [esi + 0x1c]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401e70
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebp + 0x44]
call fcn.004042e0
jmp 0x408e73
mov edx, dword [esp + 0x18]
sub edx, dword [esi + 0x10]
cmp edx, 0x1770
jbe 0x408e15
push str.CNatPunch
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push edx
push 0x43dee0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
push 0
push ecx
mov byte [esp + 0x88], 2
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esi + 0x14]
mov byte [edx + 0x18], bl
mov eax, dword [esi + 0x1c]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401e70
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebp + 0x44]
call fcn.004042e0
jmp 0x408e73
mov eax, dword [esi + 0x14]
mov di, word [eax + 8]
mov eax, dword [eax + 4]
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
push eax
mov dword [esp + 0x68], edx
mov word [esp + 0x5c], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x60], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x5a], ax
movzx ecx, word [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [0x450af0]
push edx
call fcn.0040d610
lea ecx, [esp + 0x10]
call fcn.00401e70
mov esi, dword [esp + 0x10]
cmp esi, dword [ebp + 0x48]
jne 0x408d40
mov edi, dword [esp + 0x1c]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
pop ebp
call fcn.00437d67
add esp, 0x68
ret