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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
call fcn.004cb890
mov dword [esp], 0x8c
mov ecx, eax
call fcn.004cba30
movzx ecx, byte [eax + 0x1a]
mov ebx, eax
sub esp, 4
movzx edx, byte [eax + 0x1c]
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
and ecx, 0xfffffff0
and edx, 0xfffffffe
mov byte [eax + 0x1c], dl
mov byte [eax + 0x1a], cl
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 + 0x18], 0
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
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
and byte [ebx + 0x2c], 0x80
movzx eax, word [ebx + 0x3e]
movzx edi, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or di, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], di
shr di, 8
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
mov eax, edi
or eax, 0xffffffe0
mov byte [ebx + 0x53], al
mov dword [ebx + 0x5c], 0xfffff800
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
mov byte [ebx + 0x54], 0xff
and dword [ebx + 0x24], 0xffc03fff
movzx eax, byte [esi + 4]
mov byte [ebx + 0x18], al
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x74], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x5c], eax
movzx edi, byte [esi + 5]
and edi, 0xf
mov eax, edi
mov byte [ebx + 0x19], al
movzx eax, byte [esi + 5]
and eax, 0xfffffff0
or eax, edi
mov byte [ebx + 0x19], al
movzx eax, byte [esi + 6]
and eax, 0xf
or eax, ecx
mov byte [ebx + 0x1a], al
movzx eax, byte [esi + 8]
lea ecx, [ebx + 0x84]
and eax, 1
or eax, edx
mov byte [ebx + 0x1c], al
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x58]
mov dword [ebx], 0x6f14e8
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.005f4c40
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 4]
sub esp, 4
mov dword [esp], edx
call eax
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10