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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60bd64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0
cmp dword [ebp + 0xc], esi
jne 0x51aab2
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp ecx, esi
je 0x51aab7
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x24], esi
jmp 0x51aab7
mov byte [esp + 0x12], 1
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
sub esp, 0xc
mov edi, esp
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
mov eax, edi
call fcn.0051a0ac
mov eax, dword [ebp + 0xc]
call fcn.00519bcc
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
call fcn.0051b48d
mov ecx, dword [ebp + 0xc]
push 0
call fcn.0051b007
cmp byte [esp + 0x12], 0
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
jne 0x51ab16
call dword [eax + 0x10]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x51ab32
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51ab32
call dword [eax + 4]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x51ab26
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0x644e3c
call fcn.00484e55
or dword [esp + 0x1c], 0xffffffff
lea eax, [ebx + 4]
call fcn.004c9e39
test al, al
je 0x51ad50
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
and dword [esp + 0x6c], 0
xor edi, edi
inc edi
or dword [esp + 0x14], edi
mov esi, eax
call fcn.004c9e1f
test al, al
je 0x51ab87
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov ecx, dword [ebp + 0xc]
or dword [esp + 0x14], 2
mov byte [esp + 0x13], 1
cmp dword [eax], ecx
je 0x51ab8c
mov byte [esp + 0x13], 0
xor esi, esi
test byte [esp + 0x14], 2
je 0x51abab
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x14], 0xfffffffd
cmp ecx, esi
je 0x51abab
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x2c], esi
or dword [esp + 0x6c], 0xffffffff
test byte [esp + 0x14], 1
je 0x51abcd
mov ecx, dword [esp + 0x34]
and dword [esp + 0x14], 0xfffffffe
cmp ecx, esi
je 0x51abcd
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x34], esi
cmp byte [esp + 0x13], 0
jne 0x51ad3e
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
cmp dword [eax], esi
je 0x51abf1
cmp dword [eax + 4], esi
jge 0x51abf1
mov eax, edi
jmp 0x51abf3
xor eax, eax
mov ecx, dword [esp + 0x3c]
test al, al
sete byte [esp + 0x13]
cmp ecx, esi
je 0x51ac0b
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x3c], esi
cmp byte [esp + 0x13], 0
jne 0x51ad0f
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 6
setne byte [esp + 0x13]
or dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x44]
cmp ecx, esi
je 0x51ac4b
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x44], esi
cmp byte [esp + 0x13], 0
jne 0x51ad0f
mov eax, dword [ebx]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov ecx, dword [esp + 0x4c]
mov edi, dword [eax]
mov dword [esp + 0x20], edi
cmp ecx, esi
je 0x51ac79
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x4c], esi
mov eax, dword [edi + 0x18]
cmp eax, esi
je 0x51ac85
mov eax, dword [eax + 0x1c]
jmp 0x51ac88
or eax, 0xffffffff
mov esi, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
je 0x51ace5
cmp dword [esp + 0x1c], 0xffffffff
je 0x51acb2
push 0x3f
pop edx
mov edi, esi
call fcn.0051af58
dec dword [esi + 0x28]
mov eax, dword [esi + 0x28]
call fcn.0051b48d
mov edi, dword [esp + 0x20]
mov edi, dword [edi + 0x18]
test edi, edi
je 0x51acc2
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
jmp 0x51acc7
or dword [esp + 0x1c], 0xffffffff
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov edi, esi
mov dword [esi + 0x28], ecx
call fcn.0051b48d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
push 0
call fcn.0051b007
mov eax, dword [esi + 0x28]
mov edi, esi
call fcn.0051b48d
mov ecx, dword [esp + 0x20]
push 0
call fcn.0051b007
push esi
mov edi, ebx
call fcn.0051a1a9
push dword [esp + 0x20]
mov edi, esi
call fcn.0051b194
xor esi, esi
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x54]
cmp ecx, esi
je 0x51ad2c
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x54], esi
lea eax, [ebx + 4]
call fcn.004c9e39
test al, al
jne 0x51ab47
xor esi, esi
cmp dword [esp + 0x1c], esi
jl 0x51ad50
mov edi, dword [esp + 0x18]
push 0x3f
pop edx
call fcn.0051af58
cmp byte [esp + 0x12], 0
je 0x51ad67
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
push 0x644ed4
call fcn.00484e55
push dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
call fcn.0051b194
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8