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

Disassembly:
sub esp, 0x84
mov eax, dword [0x6fb4c0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0xa4]
push edi
push dword [ebx + 0x58]
mov dword [esp + 0x40], ebx
push 0
push dword [ebx + 0x5c]
call fcn.00526970
mov ecx, dword [esp + 0xb0]
add esp, 0xc
cmp ecx, 3
ja case.default.0x50c5bd
jmp dword [ecx*4 + 0x50d324]
mov eax, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
jmp 0x50c5e5
xor eax, eax
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 1
mov edi, 0xb
mov dword [esp + 0x6c], 3
mov dword [esp + 0x78], 3
jmp 0x50c621
xor eax, eax
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 5
mov dword [esp + 0x6c], 2
lea edi, [eax + 3]
mov edx, dword [ebx]
shl esi, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], 4
mov dword [esp + 0x70], 0xc
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], edx
cmp ecx, 2
je 0x50c6ad
cmp ecx, 3
je 0x50c6ad
test eax, eax
jne 0x50c691
push dword [ebx + 0x30]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d480
add esp, 0x14
cmp dword [esp + 0xa4], 4
jne 0x50c6a5
push esi
push edi
push dword [ebx + 0x30]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
add esp, 0x14
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
add esi, 4
cmp ebp, dword [esp + 0xa0]
jae 0x50d24a
nop dword [eax]
movzx ecx, word [ebp]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
lea eax, [ecx - 3]
cmp eax, 0x9e
ja case.0x50c6e7.4
movzx eax, byte [eax + 0x50d378]
jmp dword [eax*4 + 0x50d334]
test byte [esp + 0xb0], 1
je 0x50c735
mov eax, dword [ebx + 0x24]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x1b], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x1b]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50c735
or cl, ch
mov dword [esp + 0x24], 1
mov byte [eax], cl
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
add ebp, 2
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
cmp ecx, 2
je 0x50d12b
cmp ecx, 3
je 0x50d12b
xor ebx, ebx
test edx, edx
jle 0x50d12e
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x50d0ff
nop
push dword [esp + ebx*4 + 0x34]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d480
mov ecx, dword [esp + 0xb8]
add esp, 0x14
cmp ecx, 4
jne 0x50c7ad
push esi
push edi
push dword [esp + ebx*4 + 0x3c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
mov ecx, dword [esp + 0xb8]
add esp, 0x14
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x50c770
mov ebp, dword [esp + 0x1c]
jmp 0x50d12e
test byte [esp + 0xb0], 1
je 0x50c852
cmp dword [ebx + 0x74], edx
je 0x50c80e
mov eax, dword [ebx + 0x24]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x1b], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x1b]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50c80e
or cl, ch
mov dword [esp + 0x24], 1
mov byte [eax], cl
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x50c852
sar eax, 2
mov ecx, eax
mov byte [esp + 0x1b], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x1b]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50c852
or cl, ch
mov byte [eax], cl
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0x40]
mov dword [esp + ecx*4 + 0x44], eax
inc ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jmp 0x50c856
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x50c8a3
sar ecx, 2
mov dh, 1
mov dword [esp + 0x2c], ecx
and ecx, 7
shl dh, cl
mov ecx, dword [esp + 0x2c]
sar ecx, 3
add ecx, dword [ebx + 0x5c]
mov byte [esp + 0x13], dh
test byte [ecx], dh
mov edx, dword [esp + 0x20]
jne 0x50c8a3
mov al, byte [ecx]
or al, byte [esp + 0x13]
mov byte [ecx], al
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], eax
add ebp, 4
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0xc]
sar eax, 1
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50c91c
sar eax, 2
mov dl, 1
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
je 0x50c8f1
mov ecx, dword [esp + 0x2c]
xor edx, edx
jmp 0x50c904
or cl, dl
mov edx, 1
mov byte [eax], cl
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp + 0x20], edx
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
sar eax, 1
mov eax, dword [ecx + eax*4]
lea ebp, [ebp + eax*2]
add ebp, 4
jmp 0x50c738
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
mov dl, 1
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
je 0x50c95b
xor edx, edx
add ebp, 4
mov dword [esp + 0x20], edx
jmp 0x50c738
or cl, dl
mov edx, 1
mov byte [eax], cl
add ebp, 4
mov dword [esp + 0x20], edx
jmp 0x50c738
movzx ecx, word [ebp + 4]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x13], 1
lea eax, [eax + ecx*8]
mov dword [esp + 0x84], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50c9c9
or cl, ch
mov dword [esp + 0x28], 2
mov byte [eax], cl
mov eax, dword [esp + 0x84]
add eax, 4
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x50ca0e
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50ca0e
or cl, ch
mov byte [eax], cl
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0x48]
mov dword [esp + ecx*4 + 0x84], eax
inc ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + eax], dl
jne 0x50ca64
mov eax, dword [ebx + 0x20]
mov byte [esp + 0x13], 1
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50ca64
or cl, ch
mov edx, 1
mov byte [eax], cl
add ebp, 6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [esp + 0x14]
add ebp, 6
mov dword [esp + 0x1c], ebp
jmp 0x50c740
movzx ecx, word [ebp + 4]
mov dl, 1
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x30], ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x84], eax
sar eax, 2
mov ecx, eax
sar eax, 3
and ecx, 7
shl dl, cl
mov ecx, dword [ebx + 0x5c]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov cl, byte [eax]
test dl, cl
je 0x50caad
mov edx, dword [esp + 0x28]
jmp 0x50cada
or cl, dl
mov edx, 2
mov byte [eax], cl
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
add eax, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x50cb2e
sar eax, 2
mov bh, 1
mov ecx, eax
sar eax, 3
and ecx, 7
shl bh, cl
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov byte [esp + 0x1b], bh
test byte [eax], bh
mov ebx, dword [esp + 0x3c]
je 0x50cb08
mov dword [esp + 0x1c], ecx
jmp 0x50cb2e
mov cl, byte [eax]
or cl, byte [esp + 0x1b]
mov byte [eax], cl
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + edx*4 + 0x84], eax
inc edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
mov dl, 1
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [esp + 0x1c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
je 0x50cb68
xor edx, edx
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x34]
jmp 0x50cb84
or cl, dl
mov dword [esp + 0x2c], 2
mov byte [eax], cl
mov edx, 1
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x20]
mov bl, 1
mov dword [esp + 0x20], edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x30], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [esp + 0x1c]
and ecx, 7
shl bl, cl
mov cl, byte [eax]
test bl, cl
je 0x50cbc3
mov eax, dword [esp + 0x14]
add ebp, 6
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov edx, dword [esp + 0x2c]
or cl, bl
mov byte [eax], cl
add ebp, 6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebp
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x50c740
movzx eax, word [ebp + 2]
movzx eax, word [ebp + eax*2]
cmp eax, 0x7a
je 0x50cc00
cmp eax, 0x7b
jne 0x50cc51
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov byte [esp + 0x13], 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50cc51
or cl, ch
mov edx, 1
mov byte [eax], cl
add ebp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [esp + 0x14]
add ebp, 4
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50ccac
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50ccac
or cl, ch
mov edx, 1
mov byte [eax], cl
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
jmp 0x50ccb0
mov eax, dword [esp + 0x14]
add ebp, 4
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c740
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
jne 0x50c73c
jmp 0x50c735
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x50cd3d
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50cd3d
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x50cd41
mov eax, dword [esp + 0x14]
add ebp, 4
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c740
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
mov eax, dword [esp + 0x14]
jne 0x50c740
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x50cdd9
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50cdd9
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x50cddd
mov eax, dword [esp + 0x14]
add ebp, 6
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c740
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
mov eax, dword [esp + 0x14]
jne 0x50c740
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50ce70
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50ce70
or cl, ch
mov edx, 1
mov byte [eax], cl
add ebp, 2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [esp + 0x14]
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x50ce70
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50ce70
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
add ebp, 2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x50cc51
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50cc51
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
add ebp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
cmp ecx, 0x70
jne 0x50cf5f
movzx eax, word [ebp + 2]
mov dword [esp + 0x1c], eax
jmp 0x50cf67
mov dword [esp + 0x1c], 0x11
mov eax, dword [ebx + 0xc]
mov ecx, ebp
sub ecx, dword [ebx + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50d00b
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
lea eax, [eax*2]
add eax, ebp
push eax
call fcn.00514820
add esp, 4
sub eax, 1
je 0x50d006
sub eax, 1
jne 0x50cff5
mov eax, dword [esp + 0x2c]
mov dl, 1
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [ebx + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
jne 0x50cff5
or cl, dl
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ebp, [ebp + eax*2]
jmp 0x50c738
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea ebp, [ebp + eax*2]
jmp 0x50c738
mov edx, 1
mov eax, dword [esp + 0x1c]
lea ebp, [ebp + eax*2]
jmp 0x50c738
test byte [esp + 0xb0], 1
je 0x50d05f
mov eax, dword [ebx + 0x40]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50d05f
or cl, ch
mov dword [esp + 0x24], 1
mov byte [eax], cl
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x50d0a1
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x50d0a1
or cl, ch
mov edx, 1
mov byte [eax], cl
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
movzx eax, word [ebp + 2]
lea ebp, [ebp + eax*2]
add ebp, 6
jmp 0x50c738
mov eax, dword [ebx + 0x44]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [ebx + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test cl, ch
jne 0x50ce70
or ch, cl
mov edx, 1
mov byte [eax], ch
add ebp, 2
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x50c740
xor ebx, ebx
push esi
push edi
push dword [esp + ebx*4 + 0x3c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d101
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
jmp 0x50d12e
lea esi, [esi + edx*4]
cmp ecx, 1
je 0x50d1e0
cmp ecx, 3
je 0x50d1e0
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jbe 0x50d1f0
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x14], ebx
jne 0x50d1b1
nop word [eax + eax]
push dword [esp + ebx*4 + 0x84]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d480
mov ecx, dword [esp + 0xb8]
add esp, 0x14
cmp ecx, 4
jne 0x50d1a3
push esi
push edi
push dword [esp + ebx*4 + 0x8c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
mov ecx, dword [esp + 0xb8]
add esp, 0x14
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x50d160
mov ebp, dword [esp + 0x1c]
jmp 0x50d1f0
xor ebx, ebx
push esi
push edi
push dword [esp + ebx*4 + 0x8c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d1b3
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
jmp 0x50d1f0
mov eax, dword [esp + 0x28]
lea esi, [esi + eax*4]
cmp ecx, 1
je 0x50d304
cmp ecx, 4
je 0x50d304
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
je 0x50d231
cmp dword [esp + 0x14], ebx
jne 0x50d2d4
mov ebp, eax
nop
push dword [esp + ebx*4 + 0x44]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d480
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d210
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
cmp ebp, dword [esp + 0xa0]
jb 0x50c6c0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x80]
mov ebp, 3
mov ecx, ebp
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0x50]
cmp eax, 0xffffffff
je 0x50d2aa
mov edi, dword [esp + esi*4 + 0x68]
or eax, 0x80
mov ebx, dword [esp + esi*4 + 0x74]
push 0
push edi
push dword [esp + esi*4 + 0x64]
push eax
push 0x20
push edx
call fcn.0051c420
lea eax, [ebx - 4]
add esp, 0x18
cmp eax, 5
ja 0x50d2a5
push 0
push ebx
push 0
push edi
push 0x20
push dword [esp + 0x38]
call fcn.0051c420
add esp, 0x18
mov ecx, 3
lea eax, [esi + 1]
cdq
idiv ecx
mov esi, edx
mov edx, dword [esp + 0x24]
sub ebp, 1
jne 0x50d260
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524900
add esp, 0x84
ret
xor ebx, ebx
test eax, eax
jle 0x50d231
mov ebp, dword [esp + 0x24]
push esi
push edi
push dword [esp + ebx*4 + 0x4c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d480
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d2e2
jmp 0x50d22d
mov eax, dword [esp + 0x24]
lea esi, [esi + eax*4]
jmp 0x50d231
push ebp
push ebx
call fcn.00518210
add esp, 8
mov ebp, eax
jmp 0x50d235