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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
lea edi, [ecx + 0x270]
lea eax, [ecx + 0x994]
mov esi, ecx
lea ebx, [esp + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 8], edi
mov al, byte [esi + 0x10cd]
and dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x34]
mov byte [esp + 7], al
mov eax, dword [esi + 0xf34]
push ecx
push dword [esi + 0xf30]
push ebx
call dword [eax + 0x2c]
add esp, 0xc
xor eax, eax
cmp dword [esp + 0x10], eax
je 0x54c4c0
movzx ecx, byte [esp + 7]
mov al, 1
test ecx, ecx
je 0x54c4b4
cmp ecx, 1
jne 0x54c7b2
mov al, 2
movzx edx, al
mov ecx, esi
push ebx
call 0x54c7df
pop eax
cmp dword [esp + 0x3c], 0
je 0x54c51c
movzx eax, byte [esp + 7]
mov ecx, edi
mov edx, ebx
movsd xmm0, qword [esp + 0x34]
imul eax, eax, 0x1d0
movsd qword [esp + 0x10], xmm0
mov ebx, dword [ecx + eax + 0x154]
mov ecx, dword [esp + 0x3c]
mov edi, dword [edi + eax + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x70]
call fcn.004554cf
cmp dword [esi + 0x980], 0
mov al, byte [esp + 7]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
je 0x54c544
mov edi, dword [esp + 8]
jmp 0x54c592
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov bl, byte [esp + 7]
mov bh, byte [esi + 0x10cd]
call fcn.00454e92
cmp bl, bh
lea ebx, [esp + 0x10]
jne 0x54c462
jmp 0x54c7aa
mov ecx, edi
or ecx, ebx
jne 0x54c516
test al, al
jne 0x54c516
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 8]
lea ebx, [esp + 0x10]
cmp byte [ecx + 0x10b2], 0
jne 0x54c596
mov ecx, ebx
lea edx, [esp + 0x70]
call fcn.0045559e
mov ebx, dword [esp + 0x40]
mov ecx, ebx
call fcn.00480bc5
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
mov al, byte [esp + 7]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
lea ebx, [esp + 0x10]
mov ecx, dword [esp + 0x78]
movzx eax, al
imul edx, eax, 0x1d0
add dword [edi + edx + 0x150], ecx
adc dword [edi + edx + 0x154], 0
mov ecx, dword [0x7f50bc]
mov esi, dword [esp + 0x30]
cmp ecx, 5
jb 0x54c769
mov ebx, dword [0x7f2d6c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
call fcn.00513e14
mov ecx, eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x54], ecx
push ecx
mov dword [esp + 0x5c], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x54c760
mov eax, dword [esp + 0x68]
movsd xmm0, qword [esp + 0x60]
mov dword [esp + 0xc8], eax
mov eax, dword [0x7f2d6c]
movsd qword [esp + 0xc0], xmm0
lea ecx, [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
and dword [esp + 0x9c], 0
mov dword [esp + 0xa0], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x90], edx
lea edx, [esp + 0x8c]
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], eax
call fcn.0052f9c5
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x10]
push 0x769738
call fcn.0052f9f9
pop eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], 0x769748
mov dword [esp + 0x14], 3
and dword [esp + 0x20], 0
mov edx, dword [esp + 0x50]
mov ecx, ebx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xb0], eax
lea eax, [esp + 7]
mov dword [esp + 0xb4], fcn.004564b0
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xbc], fcn.005244ed
mov dword [esp + 0x18], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x1c], 2
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x80]
mov dword [esp + 0xac], 0x767e50
push eax
lea eax, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x5c]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
movzx eax, byte [esp + 7]
lea ebx, [esp + 0x10]
imul eax, eax, 0x1d0
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
mov edx, dword [esp + 0x58]
lea ecx, [edi + eax + 0x180]
mov eax, dword [esp + 0x5c]
movsd qword [esp + 0x18], xmm1
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0x24], edx
mov edx, ebx
mov dword [esp + 0x20], eax
call fcn.0052ba2a
jmp 0x54c462
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x8c]
lea eax, [esp + 0xc]
mov edx, 0x769728
mov dword [ecx], 0x769720
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
and dword [ecx + 0xc], 0
call fcn.0062d360
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov ebx, edx
mov esi, ecx
mov byte [esp + 3], bl
mov eax, dword [0x7f50bc]
cmp eax, 5
jb 0x54c905
mov edi, dword [0x7f2d78]
lea ebp, [esp + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov dword [ebp], 5
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
call fcn.00513e14
push ebp
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0x14], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x54c905
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
movsd xmm0, qword [esp + 0x10]
lea edx, [esp + 0x50]
mov dword [ecx + 8], eax
mov eax, dword [0x7f2d78]
movsd qword [ecx], xmm0
lea ecx, [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 4], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x28]
and dword [edx + 0x10], 0
mov dword [edx + 0x14], ebx
mov dword [edx], ecx
mov dword [edx + 4], ebx
lea ebx, [esp + 0x74]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov ecx, ebx
call fcn.0052f9c5
lea ecx, [esp + 0x30]
mov edx, ebx
push 0x769760
call fcn.0052f9f9
pop eax
lea ebp, [esp + 3]
lea eax, [esp + 0x28]
mov dword [ebx], 0x76977c
mov dword [ebx + 4], 2
and dword [ebx + 0x10], 0
lea ecx, [esp + 0x68]
lea edx, [esp + 0x30]
mov dword [eax], ebp
mov dword [eax + 4], fcn.005244ed
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov edx, dword [esp + 8]
mov dword [ecx + 8], 0x767e50
inc eax
mov dword [ebx + 0xc], eax
lea ebx, [esp + 0x44]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 4]
mov ecx, edi
mov dword [ebx + 8], eax
push ebx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
mov bl, byte [ebp]
mov ebp, dword [esp + 0xa0]
cmp bl, 2
jne 0x54c96c
mov eax, dword [esi + 0xf34]
lea ebx, [esp + 0x74]
push dword [esi + 0xf30]
push ebx
call dword [eax + 0x30]
add esp, 8
lea edi, [esp + 0x50]
mov edx, ebx
mov ecx, edi
push 0x7697a8
push 0x1c
push str.handshake_should_be_complete
call fcn.00539d71
add esp, 0xc
lea ecx, [esi + 0xed0]
call fcn.0054c9de
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
mov bl, byte [esp + 3]
movsd qword [esi + 0xed8], xmm1
movsd qword [esi + 0xed0], xmm0
movzx eax, bl
imul eax, eax, 0x1d0
lea edi, [esi + eax + 0x2b0]
mov ecx, edi
call fcn.00538e9f
movsd xmm1, qword [ebp + 0x10]
mov al, byte [esp + 3]
movsd xmm0, qword [ebp + 0x18]
movsd xmm2, qword [ebp]
movsd qword [edi + 0x10], xmm1
movsd xmm1, qword [ebp + 8]
cmp al, 2
movsd qword [edi + 0x18], xmm0
movsd qword [edi], xmm2
movsd qword [edi + 8], xmm1
mov byte [esi + 0x10cd], al
jne 0x54c9d3
cmp byte [esi + 0x10b2], 0
jne 0x54c9d3
lea ecx, [esi + 0xec0]
call fcn.0054c3c9
and dword [esi + 0xec0], 0
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret