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

Disassembly:
sub esp, 0x30
push ebx
push ebp
xor eax, eax
test byte [0xb314e0], 1
push esi
push edi
mov dword [esp + 0x20], eax
lea esi, [eax + 1]
jne 0x5417e1
or dword [0xb314e0], esi
push 0x681e30
mov dword [0xb044b8], eax
call fcn.004a9213
add esp, 4
mov edi, dword [esp + 0x44]
add edi, 0x30
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 4
cmp dword [edi + 8], 0
je 0x541aa1
mov eax, dword [0xb044b8]
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
mov esi, 0xb03d38
lea eax, [ecx*8 + 0xb03d38]
cmp eax, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
je 0x54185b
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
mov edx, dword [esi + 0x1c]
jne 0x541841
cmp edx, ebp
je 0x54184a
add esi, 0x78
cmp esi, eax
jne 0x541833
jmp 0x54185b
push esi
call fcn.00675380
mov edx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [edi + 0x1a0]
lea esi, [edi + 0xa0]
shl eax, 4
add eax, esi
cmp esi, eax
je 0x541940
jmp 0x541880
mov eax, dword [esp + 0x20]
cmp dword [esi + 8], eax
je 0x541924
test byte [0xb314e0], 1
jne 0x5418b4
or dword [0xb314e0], 1
push 0x681e30
mov dword [0xb044b8], 0
call fcn.004a9213
add esp, 4
mov ecx, dword [0xb044b8]
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, 0xb03d38
lea edx, [edx*8 + 0xb03d38]
cmp edx, eax
je 0x5418eb
mov ecx, dword [eax + 0x18]
cmp ecx, ebp
mov edi, dword [eax + 0x1c]
jne 0x5418e4
cmp edi, ebx
je 0x54195b
add eax, 0x78
cmp eax, edx
jne 0x5418d6
xor edi, edi
mov eax, 0x6ba098
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
push str.NETWORK_ML:_Incorrect_Checksum:__s_thinks_ours_is__d__its_really:__d_n
call fcn.00408d10
add esp, 0x10
test edi, edi
mov dword [esp + 0x10], 0
je 0x541920
mov eax, dword [esp + 0x44]
push edi
push eax
call fcn.0053d9c0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x1a0]
lea ecx, [edi + 0xa0]
shl eax, 4
add esi, 0x10
add eax, ecx
cmp esi, eax
jne 0x541880
mov ecx, dword [0xb044b8]
cmp dword [edi + 0x1a0], ecx
je 0x541962
mov dword [esp + 0x10], 0
jmp 0x541a7e
mov edi, eax
add eax, 4
jmp 0x5418f2
cmp dword [esp + 0x10], 0
je 0x541a7e
cmp dword [esp + 0x24], 0
jne 0x541a7e
push 0x18
call fcn.00475d70
add esp, 4
test eax, eax
je 0x541a27
push 0
push 0x2d
mov ecx, eax
call fcn.0048a4a0
mov esi, eax
test esi, esi
je 0x54199f
add dword [esi + 4], 1
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0048a6e0
mov ecx, dword [esp + 0x14]
push 0xa
mov edi, ecx
call fcn.004743d0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push 0x40
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], ecx
push edx
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.00473e90
mov ecx, dword [esp + 0x14]
push 8
mov edi, ecx
call fcn.004743d0
push 0x20
lea eax, [esp + 0x30]
mov ebx, 1
push eax
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.00473e90
push ebx
push ecx
xor edi, edi
cmp esi, edi
mov eax, esp
mov dword [eax], esi
je 0x541a09
add dword [esi + 4], ebx
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x748]
call fcn.004959a0
test al, al
je 0x541a2e
mov dword [esp + 0x10], ebx
mov eax, str.COMPLETED_
jmp 0x541a37
xor esi, esi
jmp 0x54199f
mov dword [esp + 0x10], edi
mov eax, 0x6ba0f4
push eax
push str.NETWORK_HL:_LOCAL_SYNCHRONISATION__s_n
call fcn.00408d10
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, edi
je 0x541a67
add dword [eax + 4], 0xffffffff
add eax, 4
cmp dword [eax], edi
jne 0x541a67
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov dword [esp + 0x14], edi
cmp esi, edi
je 0x541a7a
add dword [esi + 4], 0xffffffff
jne 0x541a7a
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
je 0x541a94
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], 1
jne 0x541a9c
mov dword [esp + 0x1c], 0
mov esi, 1
add edi, 0x1c0
sub dword [esp + 0x28], esi
mov dword [esp + 0x18], edi
jne 0x5417f8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4