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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, esp
mov dword [esi + 0x130], ebp
mov dword [esi + 0x134], esp
mov dword [esi + 0x140], 0xffffffff
mov dword [esi + 0x13c], 0x5228d0
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 0x138]
mov edx, dword fs:[0]
mov dword [esi + 0x138], edx
mov dword fs:[0], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x20], ecx
cmp dword [ebx + 0x38], ecx
jbe 0x51e3fa
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x51e3fa
imul edi, dword [esi + 0x20], 0xf0
mov ecx, dword [eax + edi]
xor ecx, 3
or ecx, dword [eax + edi + 4]
je 0x51e3fa
add eax, edi
cmp dword [eax + 0xcc], edx
jne 0x51e3fa
add eax, 0x20
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov byte [esi + 6], 1
mov dword [esi + 0x140], 0
lea ecx, [esi + 0x38]
push eax
push ecx
call fcn.00516310
add esp, 8
movzx eax, byte [esi + 0x38]
mov edx, dword [ebp + 8]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp al, 3
jne 0x51dfa9
mov eax, dword [esi + 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 0x10]
cmp dword [ecx + 0x38], eax
jbe 0x51e45f
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x51e45f
mov ebx, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
mov ebx, dword [esi + 0x10]
je 0x51e45f
add eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
cmp dword [eax + 0xcc], ecx
jne 0x51e45f
mov ecx, dword [eax]
xor ecx, 2
or ecx, dword [eax + 4]
jne 0x51dfe2
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
je 0x51dfe2
mov eax, dword [0x69b710]
mov eax, dword [eax]
cmp eax, 1
ja 0x51e362
movzx eax, byte [0x69b344]
test al, al
je 0x51e362
movzx ecx, al
cmp ecx, 1
je 0x51e249
cmp ecx, 2
jne 0x51e227
mov al, 2
jmp 0x51e249
movsd xmm0, qword [esi + 0x48]
movsd xmm2, qword [esi + 0x39]
movsd xmm1, qword [esi + 0x41]
mov edi, dword [ebp + 0x10]
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 9], xmm1
movsd qword [edx + 1], xmm2
mov byte [edx], al
mov ecx, edi
mov dword [esi + 0x140], 2
call fcn.0040b460
jmp 0x51e3cd
lea eax, [esi + 0x80]
push 0xb0
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [edi + 8]
movsd xmm2, qword [edi + 0x10]
movsd xmm0, qword [edi]
lea ecx, [esi + 0xc0]
mov byte [esi + 6], 0
movsd qword [esi + 0x40], xmm1
movsd xmm1, qword [edi + 0x18]
movsd qword [esi + 0x48], xmm2
movsd xmm2, qword [edi + 0x20]
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x50], xmm1
movsd xmm1, qword [edi + 0x28]
movsd qword [esi + 0x58], xmm2
movsd xmm2, qword [edi + 0x30]
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [edi + 0x38]
movsd qword [esi + 0x68], xmm2
movsd qword [esi + 0x70], xmm1
call fcn.0040b170
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
cmp dword [eax + 0x38], edx
mov edx, dword [esi + 0xc]
jbe 0x51e4ba
mov edi, dword [eax + 0x30]
test edi, edi
je 0x51e4ba
mov eax, dword [edi + edx]
xor eax, 3
or eax, dword [edi + edx + 4]
je 0x51e4ba
add edi, edx
cmp dword [edi + 0xcc], ecx
jne 0x51e4ba
movsd xmm1, qword [esi + 0x68]
movsd xmm2, qword [esi + 0x60]
mov ecx, dword [ebp + 0xc]
movsd xmm0, qword [esi + 0x70]
mov dword [esi + 0x34], edi
mov byte [esi + 7], 0
mov dword [esi + 0x140], 1
movsd qword [esi + 0xb8], xmm1
movsd xmm1, qword [esi + 0x58]
movsd qword [esi + 0xb0], xmm2
movsd xmm2, qword [esi + 0x50]
mov edx, dword [ecx + 0x74]
lea eax, [ecx + 0x64]
lea ecx, [esi + 0x80]
movsd qword [esi + 0xc0], xmm0
movsd qword [esi + 0xa8], xmm1
movsd xmm1, qword [esi + 0x48]
movsd qword [esi + 0xa0], xmm2
movsd xmm2, qword [esi + 0x38]
movsd qword [esi + 0x98], xmm1
movsd xmm1, qword [esi + 0x40]
movsd qword [esi + 0x88], xmm2
movsd qword [esi + 0x90], xmm1
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 5
mov dword [esi + 0x108], 0
push ecx
mov dword [esi + 0x30], edx
push edx
push eax
call fcn.0052c080
add esp, 0xc
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
cmp dword [ecx + 0xac], 0
je 0x51e1a8
mov eax, dword [ecx + 0xb4]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x6c], eax
jbe 0x51e5d5
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [ecx + 0x64]
mov ecx, dword [eax]
xor ecx, 6
or ecx, dword [eax + 4]
je 0x51e5d5
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [eax + 0x88], 1
mov dword [eax + 0x8c], edx
mov eax, edx
mov edx, dword [esi + 8]
jmp 0x51e1bb
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xac], 1
mov dword [ecx + 0xb0], eax
add ecx, 0xb4
mov dword [ecx], eax
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
cmp dword [ebx + 0x38], ecx
jbe 0x51e51f
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x51e51f
mov ecx, dword [eax + edi]
xor ecx, 3
or ecx, dword [eax + edi + 4]
je 0x51e51f
add eax, edi
cmp dword [eax + 0xcc], edx
jne 0x51e51f
mov edx, dword [eax + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [eax + 0x50], 0
test edx, edx
je 0x51e21c
mov eax, dword [edx + 4]
mov byte [esi + 7], 0
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov byte [eax], 3
jmp 0x51e3e5
mov byte [esi + 6], 1
push 0x69b33c
call fcn.0059e2f0
add esp, 4
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
test al, al
je 0x51e362
mov ecx, dword [0x69b33c]
movzx eax, al
mov byte [esi + 6], 1
push eax
push ecx
call fcn.005313d0
add esp, 8
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
test al, al
je 0x51e362
mov eax, dword [0x69b33c]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x51e647
mov edx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov edi, dword [esi + 8]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x20]
movlps qword [esi + 0x40], xmm0
mov dword [esi + 0x48], 0
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0xc]
cmp dword [ebx + 0x38], ecx
jbe 0x51e5ef
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x51e5ef
mov edx, dword [ecx + edi]
xor edx, 3
or edx, dword [ecx + edi + 4]
je 0x51e5ef
mov edx, dword [esi + 8]
add ecx, edi
cmp dword [ecx + 0xcc], edx
jne 0x51e5ef
add ecx, 0xcc
mov dword [esi + 0x80], 0x628894
mov dword [esi + 0x84], 2
mov dword [esi + 0x90], 0
lea edx, [eax + 0x1c]
mov byte [esi + 6], 1
mov dword [esi + 0x78], ecx
lea ecx, [esi + 0x78]
mov dword [esi + 0x7c], 0x522860
mov dword [esi + 0x88], ecx
lea ecx, [esi + 0x38]
mov dword [esi + 0x8c], 1
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x80]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x2c], 0x628574
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], edx
push ecx
push eax
call fcn.00531b00
add esp, 8
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0x38], eax
jbe 0x51e57a
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x51e57a
mov ebx, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x51e57a
add eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
cmp dword [eax + 0xcc], ecx
jne 0x51e57a
mov eax, dword [eax + 0xcc]
mov word [edx], 0x100
mov dword [edx + 4], eax
mov dword [edx + 8], 1
mov ecx, edi
mov dword [esi + 0x140], 2
call fcn.0040b460
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x140], 0xffffffff
add ecx, 0x40
call fcn.0040b170
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x138]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 6], 1
mov dword [esi + 0x140], 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
lea eax, [esi + 0x80]
push 0x6277a0
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
lea eax, [esi + 0x18]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 6], 1
mov dword [esi + 0x38], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
lea eax, [esi + 0x80]
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
lea eax, [esi + 0x28]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 7], 1
mov dword [esi + 0x140], 1
mov dword [esi + 0x14], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
push 0x6277a0
lea eax, [esi + 0x80]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
lea eax, [esi + 0x28]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 7], 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
push 0x6277a0
lea eax, [esi + 0x80]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
lea eax, [esi + 0x18]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 6], 1
mov dword [esi + 0x38], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
lea eax, [esi + 0x80]
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
mov byte [esi + 7], 0
push 0x635fc8
push 0xb
push 0x63608c
call fcn.0059d660
add esp, 0xc
jmp 0x51e65f
lea eax, [esi + 0x28]
mov dword [esi + 0x80], 0x627788
mov dword [esi + 0x84], 1
mov dword [esi + 0x90], 0
mov byte [esi + 6], 1
mov dword [esi + 0x14], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x51bc80
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
lea eax, [esi + 0x80]
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x51e65f
mov byte [esi + 6], 1
push 0x628830
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_
call fcn.005a0a40
add esp, 0xc
ud2