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

Disassembly:
sub esp, 0x84
mov eax, dword [0x6f9540]
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.00526b90
mov ecx, dword [esp + 0xb0]
add esp, 0xc
cmp ecx, 3
ja case.default.0x50c7dd
jmp dword [ecx*4 + 0x50d544]
mov eax, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
jmp 0x50c805
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 0x50c841
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 0x50c8cd
cmp ecx, 3
je 0x50c8cd
test eax, eax
jne 0x50c8b1
push dword [ebx + 0x30]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d6a0
add esp, 0x14
cmp dword [esp + 0xa4], 4
jne 0x50c8c5
push esi
push edi
push dword [ebx + 0x30]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d6a0
add esp, 0x14
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
add esi, 4
cmp ebp, dword [esp + 0xa0]
jae 0x50d46a
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.0x50c907.4
movzx eax, byte [eax + 0x50d598]
jmp dword [eax*4 + 0x50d554]
test byte [esp + 0xb0], 1
je 0x50c955
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 0x50c955
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 0x50d34b
cmp ecx, 3
je 0x50d34b
xor ebx, ebx
test edx, edx
jle 0x50d34e
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x50d31f
nop
push dword [esp + ebx*4 + 0x34]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d6a0
mov ecx, dword [esp + 0xb8]
add esp, 0x14
cmp ecx, 4
jne 0x50c9cd
push esi
push edi
push dword [esp + ebx*4 + 0x3c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d6a0
mov ecx, dword [esp + 0xb8]
add esp, 0x14
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x50c990
mov ebp, dword [esp + 0x1c]
jmp 0x50d34e
test byte [esp + 0xb0], 1
je 0x50ca72
cmp dword [ebx + 0x74], edx
je 0x50ca2e
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 0x50ca2e
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 0x50ca72
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 0x50ca72
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 0x50ca76
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x50cac3
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 0x50cac3
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 0x50c960
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 0x50cb3c
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 0x50cb11
mov ecx, dword [esp + 0x2c]
xor edx, edx
jmp 0x50cb24
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 0x50c958
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 0x50cb7b
xor edx, edx
add ebp, 4
mov dword [esp + 0x20], edx
jmp 0x50c958
or cl, dl
mov edx, 1
mov byte [eax], cl
add ebp, 4
mov dword [esp + 0x20], edx
jmp 0x50c958
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 0x50cbe9
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 0x50cc2e
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 0x50cc2e
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 0x50cc84
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 0x50cc84
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 0x50c960
mov eax, dword [esp + 0x14]
add ebp, 6
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50cccd
mov edx, dword [esp + 0x28]
jmp 0x50ccfa
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 0x50cd4e
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 0x50cd28
mov dword [esp + 0x1c], ecx
jmp 0x50cd4e
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 0x50cd88
xor edx, edx
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x34]
jmp 0x50cda4
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 0x50cde3
mov eax, dword [esp + 0x14]
add ebp, 6
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50c960
movzx eax, word [ebp + 2]
movzx eax, word [ebp + eax*2]
cmp eax, 0x7a
je 0x50ce20
cmp eax, 0x7b
jne 0x50ce71
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 0x50ce71
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 0x50c960
mov eax, dword [esp + 0x14]
add ebp, 4
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50cecc
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 0x50cecc
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 0x50ced0
mov eax, dword [esp + 0x14]
add ebp, 4
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c960
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
jne 0x50c95c
jmp 0x50c955
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 0x50cf5d
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 0x50cf5d
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 0x50cf61
mov eax, dword [esp + 0x14]
add ebp, 4
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c960
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
mov eax, dword [esp + 0x14]
jne 0x50c960
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50cff9
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 0x50cff9
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 0x50cffd
mov eax, dword [esp + 0x14]
add ebp, 6
cmp dword [ebx + 0x124], 0
mov dword [esp + 0x1c], ebp
je 0x50c960
mov ax, word [ebp - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
mov eax, dword [esp + 0x14]
jne 0x50c960
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50d090
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 0x50d090
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 0x50c960
mov eax, dword [esp + 0x14]
add ebp, 2
mov dword [esp + 0x1c], ebp
jmp 0x50c960
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 0x50d090
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 0x50d090
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 0x50c960
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 0x50ce71
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 0x50ce71
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 0x50c960
cmp ecx, 0x70
jne 0x50d17f
movzx eax, word [ebp + 2]
mov dword [esp + 0x1c], eax
jmp 0x50d187
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 0x50d22b
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.00514a40
add esp, 4
sub eax, 1
je 0x50d226
sub eax, 1
jne 0x50d215
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 0x50d215
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 0x50c958
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea ebp, [ebp + eax*2]
jmp 0x50c958
mov edx, 1
mov eax, dword [esp + 0x1c]
lea ebp, [ebp + eax*2]
jmp 0x50c958
test byte [esp + 0xb0], 1
je 0x50d27f
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 0x50d27f
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 0x50d2c1
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 0x50d2c1
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 0x50c958
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 0x50d090
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 0x50c960
xor ebx, ebx
push esi
push edi
push dword [esp + ebx*4 + 0x3c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d6a0
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d321
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
jmp 0x50d34e
lea esi, [esi + edx*4]
cmp ecx, 1
je 0x50d400
cmp ecx, 3
je 0x50d400
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jbe 0x50d410
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x14], ebx
jne 0x50d3d1
nop word [eax + eax]
push dword [esp + ebx*4 + 0x84]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d6a0
mov ecx, dword [esp + 0xb8]
add esp, 0x14
cmp ecx, 4
jne 0x50d3c3
push esi
push edi
push dword [esp + ebx*4 + 0x8c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d6a0
mov ecx, dword [esp + 0xb8]
add esp, 0x14
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x50d380
mov ebp, dword [esp + 0x1c]
jmp 0x50d410
xor ebx, ebx
push esi
push edi
push dword [esp + ebx*4 + 0x8c]
lea eax, [esp + 0x58]
push 0xd
push eax
call fcn.0050d6a0
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d3d3
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
jmp 0x50d410
mov eax, dword [esp + 0x28]
lea esi, [esi + eax*4]
cmp ecx, 1
je 0x50d524
cmp ecx, 4
je 0x50d524
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
je 0x50d451
cmp dword [esp + 0x14], ebx
jne 0x50d4f4
mov ebp, eax
nop
push dword [esp + ebx*4 + 0x44]
lea eax, [esp + 0x50]
push 0xd
push esi
push edi
push eax
call fcn.0050d6a0
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d430
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
cmp ebp, dword [esp + 0xa0]
jb 0x50c8e0
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 0x50d4ca
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.0051c640
lea eax, [ebx - 4]
add esp, 0x18
cmp eax, 5
ja 0x50d4c5
push 0
push ebx
push 0
push edi
push 0x20
push dword [esp + 0x38]
call fcn.0051c640
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 0x50d480
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524b20
add esp, 0x84
ret
xor ebx, ebx
test eax, eax
jle 0x50d451
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.0050d6a0
inc ebx
add esp, 0x14
add esi, 4
cmp ebx, ebp
jl 0x50d502
jmp 0x50d44d
mov eax, dword [esp + 0x24]
lea esi, [esi + eax*4]
jmp 0x50d451
push ebp
push ebx
call fcn.00518430
add esp, 8
mov ebp, eax
jmp 0x50d455