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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp ax, 0x40
jle 0x509f66
push 0x40
push str.at_most__d_tables_in_a_join
push ebx
call fcn.004e6ce0
add esp, 0xc
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x509f73
mov eax, 1
jmp 0x509f74
cwde
mov ecx, dword [ebx]
push esi
lea esi, [eax + eax*4]
mov dword [ebp - 0x10], eax
shl esi, 4
add esi, 0x37
mov dword [ebp - 0x2c], ecx
and esi, 0xfffffff8
push edi
lea edi, [esi + 0x264]
push edi
push ecx
call fcn.004e5490
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x509fb1
push edi
mov edi, eax
push 0
push edi
call fcn.00586790
add esp, 0xc
jmp 0x509fb4
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1e], 0
je 0x509fd0
push edi
push eax
call fcn.004e5400
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x28]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
mov dword [edi + 8], eax
call fcn.00506d30
mov dword [edi + 0x14], eax
add esi, edi
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x1c], esi
mov word [edi + 4], ax
movsd xmm0, qword [ebx + 0x1c0]
push 0x104
movsd qword [edi + 0x20], xmm0
lea edi, [esi + 0x160]
push 0
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x54], edi
call fcn.00586790
lea eax, [esi + 0x20]
mov dword [esi], ebx
mov dword [esi + 4], edi
add esp, 0x10
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 8
mov dword [esi + 0x1c], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp dword [ebx + 0x15c], 0
mov esi, dword [ebp + 0x10]
jne 0x50a077
mov eax, dword [ebx]
test byte [eax + 0xc], 0x40
jne 0x50a077
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x4cbbe0
push esi
push eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], ebx
call fcn.00509d20
add esp, 8
push 0x45
push esi
push dword [ebp - 0x18]
call fcn.0050f570
add esp, 0xc
test esi, esi
je 0x50a0ae
cmp dword [ebp - 0x10], 0
je 0x50a09c
push esi
call fcn.004e94d0
add esp, 4
test eax, eax
je 0x50a0ae
mov eax, dword [ebp - 4]
push 8
push dword [eax + 0x14]
push esi
push ebx
call fcn.004e8f30
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor eax, eax
xor esi, esi
cmp ax, word [ecx]
jge 0x50a113
mov ebx, dword [ebp - 0x18]
lea edi, [ecx + 0x14]
mov ecx, dword [ebx + 0x160]
mov eax, dword [edi + 0xc]
mov dword [ebx + ecx*4 + 0x164], eax
inc dword [ebx + 0x160]
mov eax, dword [edi]
test eax, eax
je 0x50a0ff
test byte [eax + 0x22], 0x10
je 0x50a0ff
xor ecx, ecx
mov eax, esi
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
or dword [ebx + 8], ecx
or dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0xc]
inc esi
add edi, 0x38
movsx eax, word [ecx]
cmp esi, eax
jl 0x50a0c0
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x14]
sub esi, 1
js 0x50a136
mov ebx, eax
push esi
push ebx
push ecx
call fcn.004cc570
mov ecx, dword [ebp + 0xc]
add esp, 0xc
sub esi, 1
jns 0x50a120
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x50a561
mov ecx, dword [ebp - 4]
xor edx, edx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
lea eax, [ecx + 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
test esi, esi
jle 0x50a591
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movlpd qword [ebp - 0xa0], xmm0
lea ecx, [esi - 1]
movsd xmm1, qword [ebp - 0xa0]
xor eax, eax
movlpd qword [ebp - 0xa8], xmm0
or ebx, 0xffffffff
movups xmm2, xmmword [ebp - 0xa8]
cmp edx, ecx
mov dword [ebp - 0x30], ebx
movlpd qword [ebp - 0x98], xmm0
movsd xmm0, qword [0x5d6510]
setl al
movsd qword [ebp - 0x5c], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3c]
movsd qword [ebp - 0x70], xmm1
movups xmmword [ebp - 0x80], xmm2
mov dword [ebp - 0x60], eax
test ebx, ebx
jns 0x50a451
mov ebx, dword [ebp + 0xc]
lea eax, [edx*8]
sub eax, edx
mov dword [ebp - 0xc], edx
lea ebx, [ebx + eax*8]
add ebx, 8
mov dword [ebp - 0x48], ebx
cmp edx, esi
jge 0x50a441
mov ecx, dword [ebp - 4]
lea eax, [edx + edx*4]
add ecx, 0x78
shl eax, 4
add eax, ecx
mov ecx, edx
mov dword [ebp - 0x68], eax
mov al, byte [ebx + 0x15]
and al, 0xa
mov byte [ebp - 0x19], al
cmp ecx, edx
je 0x50a234
test al, al
jne 0x50a441
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x50a24e
mov esi, dword [ebx + 0x18]
lea ecx, [edi + 4]
cmp dword [ecx], esi
je 0x50a284
inc eax
add ecx, 4
cmp eax, edx
jl 0x50a242
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov ecx, esi
mov eax, edi
and ecx, edx
and eax, dword [ebp - 0x20]
or ecx, eax
jne 0x50a29b
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, edx
lea eax, [edx + 1]
cmovne eax, edx
mov edx, eax
mov dword [ebp - 8], edx
jmp 0x50a420
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
cmovae edi, esi
jmp 0x50a25c
cmp dword [ebp - 0x50], 0
je 0x50a2a8
mov dword [ebp - 0x38], esi
mov ebx, edi
jmp 0x50a2ae
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x34], 0
jne 0x50a2bf
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a2bf
mov ecx, dword [eax]
jmp 0x50a2c1
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
inc eax
cmp dword [edx + 0x34], 0
cmovne eax, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
mov eax, edx
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
test byte [eax + 0x22], 0x10
lea eax, [ebp - 0xd0]
je 0x50a308
push dword [ebp - 0x68]
push eax
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x40]
push ebx
mov ebx, dword [ebp - 0x48]
push edx
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004c59a0
add esp, 0x28
jmp 0x50a324
push eax
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x40]
push ebx
mov ebx, dword [ebp - 0x48]
push edx
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004c4d90
add esp, 0x24
cmp dword [ebp - 0x50], 0
mov edx, dword [ebp - 0xd0]
je 0x50a33e
test edx, 0x100f3000
jne 0x50a33e
or dword [ebp - 0x60], esi
or dword [ebp - 0x64], edi
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
and ecx, dword [ebp - 0x40]
and eax, dword [ebp - 0x20]
or ecx, eax
jne 0x50a40b
mov eax, dword [ebp - 0x30]
test eax, eax
js 0x50a381
and esi, dword [ebp - 0x60]
and edi, dword [ebp - 0x64]
or esi, edi
jne 0x50a381
test dword [ebp - 0xa8], 0x100f3000
je 0x50a381
test edx, 0x100f3000
je 0x50a40b
cmp dword [ebp - 0x4c], 0
je 0x50a395
cmp dword [ebx + 0x34], 0
je 0x50a395
test edx, 0x100f3000
je 0x50a40b
test eax, eax
js 0x50a3b9
movsd xmm1, qword [ebp - 0x5c]
comisd xmm1, xmmword [ebp - 0xb8]
ja 0x50a3b9
movsd xmm1, qword [ebp - 0x70]
jb 0x50a410
comisd xmm1, xmmword [ebp - 0xc8]
jbe 0x50a410
movups xmm0, xmmword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
movups xmm2, xmmword [ebp - 0xd0]
mov dword [ebp - 0x30], ecx
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [ebp - 0xb0]
movups xmmword [ebp - 0xa8], xmm2
movsd xmm1, qword [ebp - 0xa0]
movq qword [ebp - 0x88], xmm0
movsd xmm0, qword [ebp - 0x90]
movups xmmword [ebp - 0x80], xmm2
movsd qword [ebp - 0x5c], xmm0
movsd qword [ebp - 0x70], xmm1
jmp 0x50a417
movsd xmm1, qword [ebp - 0x70]
movups xmm2, xmmword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
cmp byte [ebp - 0x19], 0
mov edx, dword [ebp - 8]
jne 0x50a43e
add dword [ebp - 0x68], 0x50
inc ecx
mov esi, dword [ebp - 0x10]
add ebx, 0x38
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x48], ebx
cmp ecx, esi
jl 0x50a220
jmp 0x50a441
mov esi, dword [ebp - 0x10]
sub dword [ebp - 0x50], 1
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x54]
jns 0x50a1e5
mov eax, dword [ebp - 0xa8]
test eax, 0x1000000
je 0x50a467
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x44], eax
movq xmm0, qword [ebp - 0x98]
movups xmmword [edx], xmm2
movq qword [edx + 0x10], xmm0
test eax, 0x200f0000
je 0x50a492
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x44]
mov dword [edx + 0x20], eax
inc dword [ecx + 0x44]
jmp 0x50a499
mov dword [edx + 0x20], 0xffffffff
mov edi, dword [ebp - 0x54]
xor ecx, ecx
mov edx, dword [edi]
test edx, edx
jle 0x50a4c3
mov esi, dword [ebp + 0xc]
lea eax, [ebx*8]
sub eax, ebx
mov esi, dword [esi + eax*8 + 0x20]
lea eax, [edi + 4]
cmp dword [eax], esi
je 0x50a53a
inc ecx
add eax, 4
cmp ecx, edx
jl 0x50a4b7
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x14]
not eax
and dword [ebp - 0x40], eax
not edx
and dword [ebp - 0x20], edx
comisd xmm1, xmmword [0x603320]
mov ecx, dword [ebp + 8]
mov byte [esi + 0x34], bl
jb 0x50a4fe
mulsd xmm1, qword [ecx + 0x1c0]
movsd qword [ecx + 0x1c0], xmm1
mov edx, dword [ebp + 0xc]
lea eax, [ebx*8]
sub eax, ebx
mov eax, dword [edx + eax*8 + 0x3c]
test eax, eax
je 0x50a51e
test dword [ebp - 0xa8], 0xf0000
je 0x50a551
mov ecx, dword [ebp - 0x34]
add esi, 0x50
inc ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
cmp ecx, esi
jge 0x50a58b
mov edx, dword [ebp - 8]
jmp 0x50a177
xor eax, eax
xor edx, edx
bts eax, ecx
cmp ecx, 0x20
cmovae edx, eax
xor eax, edx
cmp ecx, 0x40
cmovae edx, eax
jmp 0x50a4d1
push dword [eax]
push str.cannot_use_index:__s
push ecx
call fcn.004e6ce0
add esp, 0xc
mov eax, dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 0x2c]
movsd xmm0, qword [eax + 0x20]
mov eax, dword [ebp + 8]
movsd qword [eax + 0x1c0], xmm0
call fcn.0050f4d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp dword [ebx + 0x40], 0
jne 0x50a561
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x50a561
mov eax, dword [ebp - 0x44]
and eax, 0x4000000
mov dword [ebp - 0x44], eax
je 0x50a5bd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a5ba
mov dword [eax], 0
mov eax, dword [ebp - 0x44]
test byte [ebp + 0x18], 4
je 0x50a5d6
test eax, eax
je 0x50a5d6
lea edi, [ecx + 0x30]
mov byte [ecx + 6], 1
and dword [edi], 0xff7fffff
jmp 0x50a5d9
mov edi, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call fcn.004e3fa0
mov ecx, dword [ebp - 4]
add esp, 8
movsd xmm0, qword [0x603320]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
movsd qword [ecx + 0x28], xmm0
test esi, esi
jle 0x50a8be
mov dword [ebp - 0x38], esi
nop dword [eax]
movzx ecx, byte [edi + 0x34]
movsd xmm0, qword [edi + 8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov esi, dword [ecx + eax*8 + 0xc]
lea ebx, [ecx + eax*8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x1c], eax
mov edi, 0xfff0bdc0
mov dword [ebp - 8], ebx
mulsd xmm0, qword [ecx + 0x28]
movsd qword [ecx + 0x28], xmm0
mov edx, dword [esi + 0x44]
test edx, edx
je 0x50a672
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x50a66f
mov eax, dword [eax + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x50a66f
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x50a663
mov ecx, dword [ebp - 4]
test byte [esi + 0x22], 2
jne 0x50a70b
cmp dword [esi + 0x1c], 0
jne 0x50a70b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, 0x8000000
je 0x50a745
mov esi, dword [esi + 0x34]
test esi, esi
je 0x50a6ab
mov eax, dword [ebp - 0x2c]
cmp dword [esi], eax
je 0x50a6ab
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x50a6a0
push 0
push 0
push dword [ebx + 0x18]
push 0x7f
push dword [ebp - 0x28]
call fcn.004fe270
mov edx, dword [ebp - 0x28]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ebx, dword [edx + 4]
mov ecx, dword [edx]
test ebx, ebx
je 0x50a708
cmp byte [ecx + 0x1e], 0
jne 0x50a708
test eax, eax
jns 0x50a6df
mov eax, dword [edx + 0x1c]
dec eax
mov dword [ebp - 0x14], eax
lea eax, [eax + eax*4]
push dword [ebx + eax*4 + 0x10]
movsx eax, byte [ebx + eax*4 + 1]
push eax
push ecx
call fcn.004d00c0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ecx + ecx*4]
test esi, esi
jne 0x50a737
mov dword [ebx + eax*4 + 0x10], esi
mov byte [ebx + eax*4 + 1], 0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x50a7cf
push ecx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x18]
push esi
call fcn.004ca340
add esp, 0x18
jmp 0x50a85a
mov dword [ebx + eax*4 + 0x10], esi
mov byte [ebx + eax*4 + 1], 0xf6
inc dword [esi + 0xc]
jmp 0x50a708
test eax, 0x800000
jne 0x50a7b6
test byte [ebp + 0x18], 0x10
jne 0x50a7b6
xor eax, eax
cmp byte [ecx + 6], al
setne al
add eax, 0x26
push eax
push esi
push edi
push dword [ebx + 0x18]
push dword [ebp + 8]
call fcn.004f0f80
mov eax, dword [ebp - 4]
add esp, 0x14
cmp byte [eax + 6], 0
jne 0x50a70b
cmp dword [esi + 8], 0x40
jge 0x50a70b
mov edx, dword [ebx + 0x28]
xor esi, esi
mov ecx, dword [ebx + 0x2c]
mov eax, edx
or eax, ecx
je 0x50a79d
nop dword [eax + eax]
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x50a790
mov ecx, dword [ebp - 0x28]
push 0xfffffffffffffff2
push esi
mov eax, dword [ecx + 0x1c]
dec eax
push eax
push ecx
call fcn.004fe530
add esp, 0x10
jmp 0x50a70b
push dword [esi]
push 0
push dword [esi + 0x14]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004fab30
add esp, 0x14
jmp 0x50a70e
test eax, 0xf0000
je 0x50a85a
mov esi, dword [ecx + 0x10]
push esi
push dword [ebp + 8]
call fcn.004ee510
mov ebx, eax
mov eax, dword [ebp - 0x24]
push edi
push dword [esi + 0x14]
mov dword [ebp - 0x14], ebx
push dword [eax + 0x20]
push 0x26
push dword [ebp - 0x28]
call fcn.004fe270
mov edx, dword [ebp - 0x28]
add esp, 0x1c
mov esi, dword [edx + 4]
mov ecx, dword [edx]
test esi, esi
je 0x50a84e
cmp byte [ecx + 0x1e], 0
jne 0x50a84e
test eax, eax
jns 0x50a81c
mov eax, dword [edx + 0x1c]
dec eax
lea ebx, [eax + eax*4]
push dword [esi + ebx*4 + 0x10]
movsx eax, byte [esi + ebx*4 + 1]
push eax
push ecx
call fcn.004d00c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
jne 0x50a843
mov dword [esi + ebx*4 + 0x10], eax
mov byte [esi + ebx*4 + 1], al
jmp 0x50a85a
mov dword [esi + ebx*4 + 0x10], eax
mov byte [esi + ebx*4 + 1], 0xfa
jmp 0x50a85a
push ebx
push 0xfffffffffffffff0
push ecx
call fcn.004d00c0
add esp, 0xc
push edi
push dword [ebp + 8]
call fcn.004e3fa0
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
jle 0x50a890
mov esi, dword [ebp - 8]
add ecx, 4
mov esi, dword [esi + 0x18]
nop dword [eax]
cmp dword [ecx], esi
je 0x50a934
inc eax
add ecx, 4
cmp eax, edx
jl 0x50a880
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x24]
not ecx
and dword [ebp - 0x34], ecx
not edx
and dword [ebp - 0x30], edx
add edi, 0x50
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x24], edi
jne 0x50a610
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x50a561
xor esi, esi
mov dword [ebp - 0x38], 0xffffffff
or ebx, 0xffffffff
cmp dword [ebp - 0x10], esi
jle 0x50a92b
lea edi, [ecx + 0x5c]
push dword [ebp + 0x18]
movzx eax, byte [edi + 8]
push eax
push esi
lea eax, [edi - 0x2c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004cc220
push dword [ebp - 0x38]
push ebx
push dword [ebp + 0x18]
push esi
push dword [ebp - 4]
call fcn.004c87a0
mov ecx, dword [edi]
lea edi, [edi + 0x50]
mov ebx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 4]
inc esi
add esp, 0x2c
mov dword [eax + 0x10], ecx
cmp esi, dword [ebp - 0x10]
jl 0x50a8e8
mov ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x50a89e