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

Disassembly:
stc
pushal
pushal
sub ecx, ecx
test bl, al
mov byte [esp + 0x10], 0x88
test cl, bl
cmp di, 0x3d8d
cmp ecx, dword [edx + 0x18]
push 0xfb288840
mov byte [esp + 0x10], 0xd3
pushfd
mov word [esp], dx
lea esp, [esp + 0x48]
je 0x504e61
adc bh, 0x61
bswap ebx
shr bh, 2
mov ebx, dword [esi]
clc
push 0xd3f56f00
pushal
push dword [esp]
add ebx, eax
cmp dh, 0x57
clc
xchg dword [esp + 0x24], esi
not si
shr si, cl
mov dword [esp + 8], edi
sal esi, 3
mov dword [esp + 0x20], edi
mov word [esp], ax
xchg di, si
mov esi, dword [ebp + 4]
bts edi, esi
lea edi, [0xe2a0a46e]
push dword [esp]
test sp, 0x327f
mov edi, ebx
push dword [esp]
cmpsb byte [esi], byte es:[edi]
jmp 0x510e06
push edi
invalid
cmc
call fcn.0051138a
push 0xa61b5993
call fcn.00513d31
jle 0x4dbf4e
add esi, eax
add esp, 4
jp 0x4b3a6c
xor ecx, ecx
push dword [esp]
lea esp, [esp + 0x28]
je 0x504e61
shl cx, cl
shld cx, sp, cl
inc cl
add edx, eax
pushal
clc
shr cl, cl
mov ecx, dword [esi + 0x7c]
mov byte [esp], 0xe2
add ecx, edx
cmc
mov dword [esp + 0x20], ecx
push 0x479dfd14
clc
and cl, 0xd7
btr cx, 0xb
mov ecx, dword [ebp + 4]
cmc
push 0x72fb4440
mov byte [esp], 0x8e
stc
cmp ecx, 0xffff
mov byte [esp], 0x97
pushfd
jmp 0x505151
cmp edx, edx
pushfd
test eax, eax
pushal
lea esp, [esp + 0x28]
je 0x504e61
btc si, 9
mov esi, dword [eax + 0x3c]
not edx
add esi, eax
lea edx, [esp + 0x5a546ce5]
and dl, 0x9d
stc
adc dh, 0xda
mov edx, dword [esi + 0x78]
bt esi, edx
test edx, edx
pushal
push dword [esp]
jmp 0x5035b4
push 0xf1e06a09
lea esp, [esp + 0x30]
jbe 0x511a00
ror si, 1
not si
sar si, cl
cmp dl, dh
mov edi, dword [edx + 0x24]
shl si, 5
add edi, eax
shl esi, 0x15
pushfd
mov word [esp], 0xa7c9
movzx esi, cl
mov esi, dword [edx + 0x20]
test sp, 0x284b
cmc
clc
jmp 0x4e0728
pop edi
xor dword [edx - 0x34], esp
ror byte [ebp - 0x2efdac3e], 0x9c
invalid
test byte [ebx - 0x700000c], bl
pushfd
bt dx, 6
cmp ax, 0x9b36
add eax, edi
jmp 0x4dbf82
mov byte [esp], bh
lea esp, [esp + 0x28]
jne 0x4dba6a
cmp bp, di
push esp
stc
call fcn.00503b9c
push 0xc81b99d4
call fcn.00514227
pop ss
jg 0x505a6f
cmp byte [ebx - 0x67], dh
rcr byte [ebp + 0x56], 1
std
sar edi, cl
je 0x5059a6
aad 0x5a
fldenv [esi + 0x559645b9]
mov ch, 0x39
loop 0x505a64
popfd
xor bh, bl
sal dword [edi], 0xa3
loope 0x5059c1
cmp edx, esp
sub al, 0x8d
push eax
mov dh, 0
or al, byte [edx - 0x1f43217c]
push ebx
sar byte [ebx - 0x3ab56d4f], cl
mov edx, 0x4cacb6c1
lodsb al, byte [esi]
dec esp
pop ss
jg 0x505a32
imul edx, dword [eax + 0x41ac288a], 0x5ee05fd8
nop
mov ch, byte [eax]
lodsb al, byte [esi]
inc ecx
fcomp dword [edi - 0x20]
pop esi
enter 0x10b0, 0xffffffffffffff8c
das
or dl, byte [ebx + 0x6c]
fnstsw word [eax + 0x538d0820]
pop es
mov cl, 0x33
and al, 0x28
wait
sbb ah, byte [eax]
out dx, eax
jp 0x505a38
mov dword [0x9f00bd56], eax
xlatb
mov esi, 0x9114728d
adc al, 0x91
xor byte [eax - 0xc], dl
inc ecx
and cl, al
invalid
xlatb
cdq
push 7
mov ah, 0xd9
push edi
les ebp, [eax + 0x551880db]
cdq
mov bh, 0x5c
mov bh, 0x3b
mov bh, 0x3b
push edi
mov ebp, 0x40103e93
stc
aad 0x45
xchg esi, eax
int1
bound ebp, qword [0x450d1dad]
mov dword [edi - 0x5c3b75], ebx
outsd dx, dword [esi]
dec edx
aas
ljmp 0xc767
jmp 0x5059d8