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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x118
mov esi, esp
mov dword [esi + 0x100], ebp
mov dword [esi + 0x104], esp
mov dword [esi + 0x110], 0xffffffff
mov dword [esi + 0x10c], 0x5228c0
mov edx, dword [ebp + 0x14]
lea eax, [esi + 0x108]
mov ecx, dword fs:[0]
mov dword [esi + 0x108], ecx
mov dword fs:[0], eax
mov ecx, dword [edx + 4]
mov edi, dword [edx + 8]
mov eax, dword [edx]
lea edx, [esi + 0x10]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 4], eax
mov dword [esi + 0x1c], ecx
cmp dword [eax + 0x38], ecx
jbe 0x51dc0c
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51dc0c
imul ebx, dword [esi + 0x1c], 0xf0
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x51dc0c
add eax, ebx
cmp dword [eax + 0xcc], edi
jne 0x51dc0c
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 0x78]
mov dword [esi + 0x40], ebx
add eax, 0xac
add ecx, 0x64
push ecx
push eax
push edx
call fcn.0052b720
add esp, 0xc
mov ebx, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov ecx, ebx
mov dword [esi + 0x18], edx
xor ecx, 6
mov eax, ecx
mov dword [esi + 0x6c], ecx
or eax, edx
jne 0x51d9fe
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], edi
cmp dword [eax + 0x38], ecx
jbe 0x51dc4b
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51dc4b
mov ecx, dword [eax + edx]
xor ecx, 3
or ecx, dword [eax + edx + 4]
je 0x51dc4b
add eax, edx
cmp dword [eax + 0xcc], edi
jne 0x51dc4b
add eax, 0x20
mov dword [esi + 0x5c], edi
mov dword [esi + 0x110], 0
lea ecx, [esi + 0x44]
push eax
push ecx
call fcn.005173b0
add esp, 8
movzx eax, byte [esi + 0x44]
cmp al, 3
jne 0x51da4c
cmp byte [esi + 0x45], 0
je 0x51da89
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
push dword [eax + 4]
call dword [ecx]
add esp, 4
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x5c]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
cmp dword [eax + 0x38], edx
mov edx, dword [esi + 0x40]
jbe 0x51dcc0
mov edi, dword [eax + 0x30]
test edi, edi
je 0x51dcc0
mov eax, dword [edi + edx]
xor eax, 3
or eax, dword [edi + edx + 4]
je 0x51dcc0
add edi, edx
cmp dword [edi + 0xcc], ecx
jne 0x51dcc0
mov eax, dword [edi + 0x50]
mov dword [esi + 4], edi
test eax, eax
je 0x51d9da
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x54]
mov dword [esi + 0x110], 2
push ecx
call eax
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x38]
mov edi, dword [ebp + 8]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov dword [edi + 4], 0
mov dword [edi], 4
jmp 0x51dbf6
mov ecx, ebx
mov eax, edx
mov edi, 1
add ecx, 0xfffffffc
adc eax, 0xffffffff
xor edx, edx
cmp edi, ecx
sbb edx, eax
mov edx, ebx
setb al
cmp ecx, 0xffffffff
sete cl
xor edx, 3
or edx, dword [esi + 0x18]
jne 0x51dc9a
or al, cl
je 0x51dc9a
lea eax, [esi + 0x80]
push 0x48
push eax
mov edi, dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x51dbf6
mov edi, dword [ebp + 8]
movsd xmm0, qword [esi + 0x54]
movsd xmm1, qword [esi + 0x46]
movzx ecx, byte [esi + 0x45]
movsd xmm2, qword [esi + 0x4e]
movsd qword [edi + 0x18], xmm0
movsd qword [edi + 0x12], xmm2
movsd qword [edi + 0xa], xmm1
mov dword [edi + 4], 0
mov dword [edi], 3
mov byte [edi + 8], al
mov byte [edi + 9], cl
jmp 0x51dbf6
mov eax, dword [0x69b710]
mov eax, dword [eax]
cmp eax, 1
ja 0x51db8c
movzx eax, byte [0x69b338]
test al, al
je 0x51db8c
movzx ecx, al
cmp ecx, 1
je 0x51dace
cmp ecx, 2
jne 0x51dab9
mov al, 2
jmp 0x51dace
push 0x69b330
call fcn.0059e2f0
add esp, 4
test al, al
je 0x51db8c
movzx eax, al
push eax
push dword [0x69b330]
call fcn.005313d0
add esp, 8
test al, al
je 0x51db8c
mov edx, dword [0x69b330]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x51dd52
mov ecx, dword [edx + 0x1c]
movsd xmm0, qword [edx + 0x24]
mov dword [esi + 8], edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
movlps qword [esi + 0x4c], xmm0
mov dword [esi + 0x54], 0
push dword [ebp + 0x14]
call fcn.0051b630
add esp, 4
add eax, 0xcc
mov ecx, dword [esi + 8]
mov dword [esi + 0x20], 0x6287e4
mov dword [esi + 0x24], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword [esi + 0x74], 0x522860
mov dword [esi + 0x28], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x2c], 1
mov dword [esi + 0x60], eax
lea eax, [esi + 0x20]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x60]
add ecx, 0x1c
mov dword [esi + 0x68], 0x628574
mov dword [esi + 0xc], eax
lea eax, [esi + 0xc]
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ecx
push eax
push dword [0x69b330]
call fcn.00531b00
add esp, 8
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x40]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
cmp dword [eax + 0x38], ecx
jbe 0x51dd10
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51dd10
mov ecx, dword [eax + edi]
xor ecx, 3
or ecx, dword [eax + edi + 4]
je 0x51dd10
add eax, edi
cmp dword [eax + 0xcc], edx
jne 0x51dd10
mov eax, dword [eax + 0xcc]
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 3
mov word [edi + 8], 0x100
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 1
mov eax, dword [esi + 0x108]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [esi + 0x20], 0x627788
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x48], 0x51bc80
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 1
lea eax, [esi + 0x20]
push 0x6277a0
push eax
call fcn.005a0aa0
add esp, 8
ud2
lea eax, [esi + 0x64]
mov dword [esi + 0x20], 0x627788
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 0xc]
mov dword [esi + 0x10], 0x51bc80
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 1
lea eax, [esi + 0x20]
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51dd66
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x110], 0
push 0x628820
push 0x2c
push str.poll_response_called_after_response_returned
call fcn.0059d660
add esp, 0xc
jmp 0x51dd66
lea eax, [esi + 0x10]
mov dword [esi + 0x20], 0x627788
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov byte [esi + 3], 1
mov dword [esi + 0x110], 1
mov dword [esi + 0x44], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x48], 0x51bc80
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 1
lea eax, [esi + 0x20]
push 0x6277a0
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51dd66
lea eax, [esi + 0x10]
mov dword [esi + 0x20], 0x627788
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x48], 0x51bc80
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 1
lea eax, [esi + 0x20]
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51dd66
push 0x62878c
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_
call fcn.005a0a40
add esp, 0xc
ud2