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

Disassembly:
push 0xffffffffffffffff
push 0x439ec7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x20]
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x88]
lea ebp, [edi + 0x14]
push ebx
mov ecx, ebp
call fcn.00413150
cmp eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
je 0x41505c
add eax, 0xc
push eax
mov ecx, ebx
call fcn.00412ae0
test al, al
jne 0x41505c
lea eax, [esp + 0x10]
jmp 0x415067
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
mov edx, 0x32
jne 0x4150d0
cmp eax, dword [edi + 0x18]
jne 0x4151e3
lea eax, [edi + 0x50]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x415280
push 0x110
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x80], 3
je 0x415201
mov ecx, eax
call fcn.0040aac0
mov esi, eax
jmp 0x415203
mov edx, dword [esp + 0x14]
lea ecx, [ecx]
mov ecx, edx
dec edx
test ecx, ecx
mov dword [esp + 0x14], edx
jle 0x415075
mov ecx, dword [eax + 0x1c]
call fcn.00409f80
cmp eax, 3
jle 0x41513b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ecx, ebp
call fcn.00413150
cmp eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
je 0x415124
add eax, 0xc
push eax
mov ecx, ebx
call fcn.00412ae0
test al, al
jne 0x415124
lea eax, [esp + 0x10]
jmp 0x41512f
mov edx, dword [ebp + 4]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, dword [edi + 0x18]
jne 0x4150c9
jmp 0x415075
push str.CSFUnited
lea ecx, [esp + 0x44]
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 + 0x28]
mov dword [esp + 0x84], 0
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__]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
mov byte [esp + 0x84], 1
call fcn.00407860
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x80], 2
jb 0x41518c
mov eax, dword [eax + 4]
jmp 0x41518f
add eax, 4
push eax
push 0x43f7e0
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x30]
push 0
push eax
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 + 0x5c]
mov byte [esp + 0x80], 1
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 + 0x24]
mov byte [esp + 0x80], 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_]
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 4
xor esi, esi
mov eax, dword [edi + 0x38]
or ebx, 0xffffffff
inc eax
push str.CSFUnited
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], ebx
mov dword [edi + 0x38], eax
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 [str.KTLog.txt]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 4
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__]
push esi
push 0x43f7c8
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push 0
push eax
mov byte [esp + 0x94], 5
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 + 0x40]
mov byte [esp + 0x80], 4
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 dword [esp + 0x80], ebx
jmp 0x4153d8
mov ecx, dword [edi + 0x48]
lea ebx, [edi + 0x3c]
mov eax, ecx
shr eax, 2
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [ebx + 8]
cmp edx, eax
ja 0x41529d
sub eax, edx
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0xd4]
add ecx, 0x7530
cmp eax, ecx
jae 0x415366
push 0x110
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x80], 6
je 0x4152ea
mov ecx, eax
call fcn.0040aac0
mov esi, eax
jmp 0x4152ec
xor esi, esi
mov edx, dword [edi + 0x38]
or ebx, 0xffffffff
inc edx
push str.CSFUnited
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], ebx
mov dword [edi + 0x38], edx
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 edx, dword [str.KTLog.txt]
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 7
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__]
push esi
push 0x43f7c8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push 0
push ecx
mov byte [esp + 0x94], 8
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 + 0x40]
mov byte [esp + 0x80], 7
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 dword [esp + 0x80], ebx
jmp 0x4153d8
mov ecx, ebx
call fcn.00413530
push str.CSFUnited
lea ecx, [esp + 0x28]
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 edx, dword [str.KTLog.txt]
mov ebx, 9
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], ebx
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__]
push esi
push 0x43f7ac
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push 0
push ecx
mov byte [esp + 0x94], 0xa
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 + 0x40]
mov byte [esp + 0x80], 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_]
mov dword [esp + 0x80], 0xffffffff
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__::destructor_void_]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edx
call ebx
test esi, esi
je 0x41543d
push 0x40
push 0x40
mov ecx, esi
call fcn.0040ad90
mov edi, dword [esp + 0x88]
push edi
mov ecx, esi
call fcn.00409f30
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], edx
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.00414910
mov eax, dword [esp + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0x78]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4