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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
cmp dword [ecx + 0x30], 0
je 0x51f2a0
cmp dword [ecx + 0x34], 0
setne byte [eax + 0x89]
mov esi, dword [esp + 0x74]
cmp dword [ecx + 0x18], 0
je 0x51f472
mov ebp, dword [ecx + 0x1c]
mov edi, dword [eax + 0x78]
mov ebx, dword [0x69b710]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [eax + 0x78], ebp
mov eax, dword [ebx]
test eax, eax
je 0x51f34a
mov eax, ebp
xor edx, edx
mov ecx, 0xff
sub eax, edi
setne dl
cmovae ecx, edx
test cl, cl
je 0x51f472
mov edx, dword [esp + 0x80]
movzx ecx, cl
cmp ecx, 1
jne 0x51f445
mov dword [esp], eax
mov eax, dword [ebx]
test eax, eax
je 0x51f47f
mov eax, esp
lea ecx, [esp + 4]
push eax
push edx
push ecx
call fcn.00517e20
add esp, 0xc
movzx eax, byte [esp + 4]
cmp al, 3
je 0x51f472
movsd xmm0, qword [esp + 0x14]
movsd xmm2, qword [esp + 5]
movsd xmm1, qword [esp + 0xd]
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 9], xmm1
movsd qword [esi + 1], xmm2
mov byte [esi], al
jmp 0x51f475
movzx eax, byte [0x69b380]
test al, al
je 0x51f2cb
movzx ecx, al
cmp ecx, 1
je 0x51f36c
cmp ecx, 2
jne 0x51f64d
mov al, 2
movzx eax, al
push eax
push dword [0x69b378]
call fcn.005313d0
add esp, 8
test al, al
je 0x51f2cb
mov eax, dword [0x69b378]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x51f6a3
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp + 4], 0x628a18
mov dword [esp + 8], 2
mov dword [esp + 0x14], 0
lea ecx, [eax + 0x1c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edx
lea edx, [esp + 0x44]
movlps qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x34], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x38], fcn.00598a80
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x40], fcn.00598a80
mov dword [esp + 0xc], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], 2
mov dword [esp + 0x28], edx
lea edx, [esp + 4]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], 0x628574
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00531b00
add esp, 8
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jmp 0x51f2cb
sub edi, ebp
mov dword [esp], edi
mov eax, dword [ebx]
test eax, eax
je 0x51f566
mov eax, esp
lea ecx, [esp + 4]
push eax
push edx
push ecx
call fcn.00517fe0
add esp, 0xc
movzx eax, byte [esp + 4]
cmp al, 3
jne 0x51f322
mov byte [esi], 3
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x69b398]
test al, al
je 0x51f304
movzx ecx, al
cmp ecx, 1
je 0x51f4a1
cmp ecx, 2
jne 0x51f667
mov al, 2
movzx eax, al
push eax
push dword [0x69b390]
mov ebx, edx
call fcn.005313d0
mov edx, ebx
add esp, 8
test al, al
je 0x51f304
mov eax, dword [0x69b390]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x51f6aa
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea ebp, [esp + 0x28]
mov dword [esp + 4], 0x628a90
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ebp
lea ebp, [esp + 4]
mov dword [esp + 0x10], 1
mov dword [esp + 0x4c], edi
mov edi, esp
mov dword [esp + 0x50], edx
movlps qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x28], edi
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], fcn.00598a80
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x628574
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00531b00
add esp, 8
mov edx, ebx
jmp 0x51f304
movzx eax, byte [0x69b38c]
test al, al
je 0x51f454
movzx ecx, al
cmp ecx, 1
je 0x51f588
cmp ecx, 2
jne 0x51f685
mov al, 2
movzx eax, al
push eax
push dword [0x69b384]
mov ebx, edx
call fcn.005313d0
mov edx, ebx
add esp, 8
test al, al
je 0x51f454
mov eax, dword [0x69b384]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x51f6b1
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea ebp, [esp + 0x28]
mov dword [esp + 4], 0x628a58
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ebp
lea ebp, [esp + 4]
mov dword [esp + 0x10], 1
mov dword [esp + 0x4c], edi
mov edi, esp
mov dword [esp + 0x50], edx
movlps qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x28], edi
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], fcn.00598a80
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x628574
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00531b00
add esp, 8
mov edx, ebx
jmp 0x51f454
push 0x69b378
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x51f36c
jmp 0x51f2cb
push 0x69b390
mov edi, edx
call fcn.0059e2f0
mov edx, edi
add esp, 4
test al, al
jne 0x51f4a1
jmp 0x51f304
push 0x69b384
mov edi, edx
call fcn.0059e2f0
mov edx, edi
add esp, 4
test al, al
jne 0x51f588
jmp 0x51f454
push 0x6289e0
jmp 0x51f6b6
push 0x628a60
jmp 0x51f6b6
push 0x628a28
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_
call fcn.005a0a40
add esp, 0xc
ud2