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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov eax, dword [ebp + 8]
test eax, eax
je 0x51a6e6
call fcn.004cb890
mov dword [esp], 0xb8
mov ecx, eax
call fcn.004cba30
mov ebx, eax
sub esp, 4
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
movzx eax, byte [eax + 0x78]
and byte [ebx + 0x24], 0xc0
and word [ebx + 0x26], 0xfe3f
and word [ebx + 0x24], 0xc03f
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x78], al
and byte [ebx + 0x29], 0x80
and byte [ebx + 0x2c], 0x80
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x30], 0xffffffff
movzx eax, word [ebx + 0x3e]
movzx edx, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or dx, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], dx
shr dx, 8
or edx, 0xffffffe0
mov byte [ebx + 0x53], dl
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
and dword [ebx + 0x24], 0xffc03fff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x5c], 0xfffff800
mov byte [ebx + 0x54], 0xff
mov byte [ebx + 0x18], 1
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx], 0x6f1ba8
call fcn.004cb890
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x88], eax
call fcn.004cb890
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x98], eax
call fcn.004cb890
mov esi, eax
call fcn.004cb890
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
call fcn.005f3f30
mov ecx, ebx
mov dword [eax + 8], 0
lea edx, [eax + 0xc]
mov dword [eax], 0
mov byte [eax + 0xc], 0
mov eax, dword [ebx]
mov dword [ebx + 0xac], edx
mov dword [ebx + 0xa8], esi
mov byte [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
call dword [eax + 0xac]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0xc]
je 0x51a6d4
test edx, edx
je 0x51a6d0
mov ecx, dword [ebp + 8]
mov dword [edx], ecx
mov edx, dword [eax + 8]
add edx, 4
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax]
mov ecx, ebx
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
xor edx, edx
jmp 0x51a6a3
lea esi, [ebp + 8]
mov ecx, eax
mov dword [esp], esi
call fcn.00632fa0
sub esp, 4
jmp 0x51a6a9
xor eax, eax
jmp 0x51a6c1