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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x7c]
xorps xmm0, xmm0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], 0
push esi
push edi
mov edi, dword [esp + 0x78]
mov esi, dword [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x50cd8f
xor eax, eax
cmp dword [ebx], 0x40
cmovge ebx, eax
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
cmp eax, 0x40
jle 0x50cdb3
push 0x40
push str.at_most__d_tables_in_a_join
push edi
call fcn.004d7b40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x68
ret
test byte [esp + 0x90], 0x20
mov edx, 1
push ebp
cmovne eax, edx
mov dword [esp + 0x14], eax
push 0
lea eax, [eax + eax*2]
shl eax, 5
mov dword [esp + 0x3c], eax
add eax, 0x2ff
and eax, 0xfffffff8
mov dword [esp + 0x38], eax
add eax, 0x50
push eax
push ecx
call fcn.004d5b60
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
je 0x50ce15
test ebp, ebp
je 0x50d1c2
push ebp
push eax
call fcn.004d5a50
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x80]
xorps xmm0, xmm0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], edi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x14], 0xffffffff
mov byte [ebp + 0x2c], al
mov eax, dword [edi + 0x38]
dec eax
mov dword [edi + 0x38], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x94]
mov word [ebp + 0x28], ax
mov eax, dword [esp + 0x98]
mov word [ebp + 0x2a], ax
movsx eax, word [edi + 0x98]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x90]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x38]
add eax, 0x50
push eax
movups xmmword [ebp + 0x2d], xmm0
lea eax, [ebp + 0x2f8]
movups xmmword [ebp + 0x3d], xmm0
push 0
mov word [ebp + 0x4d], 0
push eax
mov byte [ebp + 0x4f], 0
call fcn.005326d0
mov ecx, dword [esp + 0x40]
lea edx, [ebp + 0x50]
mov dword [ebp + 0x1f4], 0
add ecx, ebp
mov dword [ebp + 0x1f8], 0xffffff9d
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
lea eax, [ecx + 0x40]
mov dword [ecx + 0x38], eax
xor eax, eax
mov word [ecx + 0x30], ax
mov eax, 3
mov word [ecx + 0x34], ax
lea eax, [edx + 0x20]
mov dword [ecx + 0x2c], 0
push 0x2c
push dword [esp + 0x94]
mov dword [edx], ebp
push edx
mov byte [edx + 9], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], 8
mov dword [edx + 0x18], eax
call fcn.00511eb0
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x50cf69
test ebx, ebx
je 0x50cf35
mov al, byte [ebx]
mov byte [ebp + 0x2d], al
test dword [esp + 0x94], 0x100
je 0x50cf50
mov eax, dword [esp + 0x10]
test byte [eax + 0x50], 0x10
jne 0x50cf50
mov byte [ebp + 0x2f], 1
push str.SCAN_CONSTANT_ROW
push 0
push edi
call fcn.00507a40
mov ecx, dword [esp + 0x8c]
add esp, 0xc
jmp 0x50cfb7
mov ebx, dword [esp + 0x80]
xor esi, esi
add ebx, 8
nop word [eax + eax]
mov ecx, dword [ebp + 0x1f4]
mov eax, dword [ebx + 0x2c]
mov dword [ebp + ecx*4 + 0x1f8], eax
lea eax, [ebp + 0x50]
inc dword [ebp + 0x1f4]
push eax
push ebx
push edi
call fcn.00511f20
mov ecx, dword [esp + 0x8c]
inc esi
add esp, 0xc
add ebx, 0x48
cmp esi, dword [ecx]
jl 0x50cf80
mov esi, dword [esp + 0x28]
mov ebx, dword [ebp + 0x5c]
lea eax, [ebp + 0x50]
sub ebx, 1
js 0x50cfe3
lea esi, [ebp + 0x50]
push ebx
push esi
push ecx
call fcn.004a6150
mov ecx, dword [esp + 0x8c]
add esp, 0xc
sub ebx, 1
jns 0x50cfc5
mov esi, dword [esp + 0x28]
lea eax, [ebp + 0x50]
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x50cffe
cmp dword [ecx + 0x3c], 0
je 0x50cffe
push ecx
push eax
call fcn.0050cc70
add esp, 8
cmp dword [edi + 0x24], 0
jne 0x50d1aa
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [eax + 0x14], edx
jle 0x50d0dd
xor esi, esi
nop dword [eax]
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0x18]
add ebx, esi
test byte [ebx + 0xa], 2
jne 0x50d0c4
mov eax, dword [ebx + 0x28]
or eax, dword [ebx + 0x2c]
mov ecx, dword [ebx]
mov dword [esp + 0x38], ecx
jne 0x50d0c4
cmp dword [esp + 0x14], eax
je 0x50d099
mov dword [esp + 0x74], eax
xorps xmm0, xmm0
movq qword [esp + 0x6c], xmm0
mov eax, 1
mov word [esp + 0x70], ax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x60], 0x4a95d0
mov dword [esp + 0x64], 0x4f7980
test ecx, ecx
je 0x50d099
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.0050c9c0
mov edx, dword [esp + 0x28]
add esp, 8
cmp word [esp + 0x70], 0
je 0x50d0c4
mov ecx, dword [esp + 0x38]
test byte [ecx + 4], 2
je 0x50d0ac
mov eax, dword [esp + 0x80]
test byte [eax + 0x2c], 0x40
jne 0x50d0c4
push 0x10
push dword [ebp + 0x20]
push ecx
push edi
call fcn.004dba00
mov edx, dword [esp + 0x30]
add esp, 0x10
or word [ebx + 0xa], 4
mov eax, dword [esp + 0x48]
inc edx
add esi, 0x30
mov dword [esp + 0x20], edx
cmp edx, dword [eax + 0x14]
jl 0x50d020
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x8c]
test ecx, 0x100
je 0x50d14a
mov eax, dword [esp + 0x10]
test byte [eax + 0x50], 0x10
je 0x50d115
and ecx, 0xfeff
mov eax, 0xfeff
and word [ebp + 0x28], ax
mov dword [esp + 0x94], ecx
jmp 0x50d14a
push ebx
lea eax, [ebp + 0x50]
push eax
push dword [esp + 0x88]
push edi
call fcn.004b1c50
add esp, 0x10
test eax, eax
je 0x50d134
mov byte [ebp + 0x2f], 1
jmp 0x50d14a
cmp dword [esp + 0x88], 0
jne 0x50d14a
mov eax, 0x80
mov dword [ebp + 8], ebx
or word [ebp + 0x28], ax
cmp dword [esp + 0x14], 1
jne 0x50d162
lea eax, [esp + 0x44]
push eax
call fcn.00525760
add esp, 4
test eax, eax
jne 0x50d1cc
lea eax, [esp + 0x44]
push eax
call fcn.00521060
add esp, 4
test eax, eax
jne 0x50d1aa
push eax
push ebp
call fcn.005245e0
mov eax, dword [esp + 0x18]
add esp, 8
cmp byte [eax + 0x57], 0
jne 0x50d1aa
cmp dword [ebp + 8], 0
je 0x50d1d6
mov ax, word [ebp + 0x34]
inc ax
movzx eax, ax
push eax
push ebp
call fcn.005245e0
mov eax, dword [esp + 0x18]
add esp, 8
cmp byte [eax + 0x57], 0
je 0x50d1d0
mov ax, word [ebp + 0x24]
push ebp
push dword [esp + 0x14]
mov word [edi + 0x98], ax
call fcn.00520e20
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x10]
cmp dword [ebp + 8], 0
jne 0x50d1ec
mov eax, dword [eax + 0x20]
and eax, 0x1000
or eax, 0
je 0x50d1ec
push ebp
call fcn.00525320
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x50d1aa
mov al, byte [ebp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
cmp al, 2
jb 0x50d24e
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x50d256
mov eax, dword [esp + 0x94]
xor ecx, ecx
and eax, 0x400
cmp cx, ax
jne 0x50d256
test dword [ebx + 0x50], 0x100
jne 0x50d256
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00523940
mov dword [esp + 0x28], eax
add esp, 0xc
mov al, byte [ebp + 0x2c]
movzx ecx, al
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
jmp 0x50d252
mov ebx, dword [esp + 0x10]
cmp al, 2
jb 0x50d268
test dword [ebx + 0x50], 0x80000
jne 0x50d268
push ebp
call fcn.00520b30
add esp, 4
mov ecx, dword [ebp]
mov ax, word [ebp + 0x34]
add word [ecx + 0x98], ax
xor ecx, ecx
mov eax, dword [esp + 0x94]
test al, 4
je 0x50d300
mov ebx, dword [ebp + 0x348]
mov edx, dword [ebx + 0x2c]
test edx, 0x1000
jne 0x50d2c9
test al, 8
je 0x50d300
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x2b], 1
je 0x50d300
test edx, 0x2000
je 0x50d2ba
test byte [esp + 0x94], 0x10
je 0x50d300
mov eax, dword [esp + 0x10]
xor ecx, ecx
test dword [eax + 0x50], 0x8000000
jne 0x50d300
mov eax, edx
and eax, 0x1000
neg eax
sbb al, al
xor ecx, ecx
add al, 2
mov byte [ebp + 0x2e], al
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x50d300
test dl, 0x40
je 0x50d300
mov ecx, dword [esp + 0x94]
and edx, 0xffffffbf
mov dword [ebx + 0x2c], edx
and ecx, 8
mov edx, dword [esp + 0x14]
lea ebx, [ebp + 0x2f8]
movzx eax, cx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], ebx
test edx, edx
jle 0x50d9ae
nop word [eax + eax]
movzx eax, byte [ebx + 0x3c]
mov ebx, 0xffff8000
mov ecx, dword [esp + 0x80]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
mov edx, dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x50d378
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x50d378
nop
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x50d370
test dword [edx + 0x1c], 0x4000
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x2c], ecx
jne 0x50d42e
mov al, byte [edx + 0x2b]
cmp al, 2
je 0x50d42e
mov ecx, dword [ecx + 0x2c]
test ecx, 0x400
je 0x50d3dd
mov eax, dword [edx + 0x34]
test eax, eax
je 0x50d3bc
mov ecx, dword [esp + 0x10]
cmp dword [eax], ecx
je 0x50d3bc
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x50d3b1
push 0xfffffffffffffff5
push eax
mov eax, dword [esp + 0x90]
push 0
push 0
push dword [eax + 0x2c]
push 0xad
push esi
call fcn.004fe040
add esp, 0x1c
jmp 0x50d42e
cmp al, 1
je 0x50d42e
test cl, 0x40
jne 0x50d3f4
test byte [esp + 0x94], 0x20
je 0x50d487
mov eax, dword [esp + 0x88]
test byte [eax + 0x24], 0x50
jne 0x50d48e
cmp ebx, 1
je 0x50d42e
mov eax, dword [edi]
mov ecx, ebx
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x50d42e
push dword [edx]
push 0
push dword [edx + 0x14]
push ebx
push edi
call fcn.004b7480
add esp, 0x14
mov edx, dword [esp + 0x2c]
test dword [edx + 0x2c], 0x200
je 0x50d6f8
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], 0x70
test byte [eax + 0x1c], 0x80
je 0x50d571
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x94]
jne 0x50d578
test al, 0x20
je 0x50d578
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov dword [ecx + 8], eax
jmp 0x50d6f8
mov eax, dword [esp + 0x88]
cmp byte [ebp + 0x2e], 0
mov ecx, 0x70
je 0x50d4a4
mov eax, dword [eax + 0x2c]
mov ecx, 0x71
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push ebx
push dword [eax + 0x2c]
push edi
call fcn.004e9200
add esp, 0x14
cmp byte [ebp + 0x2e], 0
jne 0x50d552
mov edx, dword [esp + 0x34]
cmp word [edx + 0x22], 0x40
jge 0x50d552
test byte [edx + 0x1c], 0xe0
jne 0x50d552
mov eax, dword [esp + 0x2c]
test dword [eax + 0x2c], 0x404000
jne 0x50d552
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], 0
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x50d51a
mov edi, dword [esp + 0x24]
shrd edx, ecx, 1
inc edi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x50d505
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x7c]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x50d552
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea ecx, [ecx - 5]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
je 0x50d54b
push 0xfffffffffffffffd
push eax
push ecx
push esi
call fcn.00519000
add esp, 0x10
jmp 0x50d552
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x50d42e
mov edx, dword [esp + 0x3c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x50d42e
mov eax, dword [esp + 0x94]
cmp byte [ebp + 0x2e], 0
je 0x50d5af
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x98]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x50d5a2
cmp eax, edx
je 0x50d5a2
mov eax, dword [eax + 0x14]
inc edi
test eax, eax
jne 0x50d596
mov dword [esp + 0x24], 0x71
mov dword [ebp + 0x18], edi
jmp 0x50d605
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x50d5cc
test al, 0x20
je 0x50d5cc
mov edi, ecx
mov dword [esp + 0x24], 0x65
mov eax, ecx
jmp 0x50d607
mov edi, dword [edi + 0x28]
mov ecx, dword [esp + 0x7c]
lea eax, [edi + 1]
mov dword [ecx + 0x28], eax
test dword [edx + 0x38], 0x800
je 0x50d605
mov eax, dword [esp + 0x10]
test dword [eax + 0x50], 0x1000000
jne 0x50d605
push dword [esp + 0x88]
push edi
push edx
push ecx
call fcn.005203e0
mov edx, dword [esp + 0x40]
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x6c]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x70], ecx
jg 0x50d62f
push ebx
push eax
push edi
push dword [esp + 0x30]
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50d666
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x30]
push edx
push edi
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
call fcn.004e7650
mov edx, eax
add esp, 8
test edx, edx
je 0x50d6c3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
cmp byte [ecx + 0x57], 0
je 0x50d6ad
cmp dword [ecx + 0x210], 0
jne 0x50d6c3
add dword [edx], 0xffffffff
jne 0x50d6c3
push edx
push dword [edx + 0xc]
call fcn.004d5c80
add esp, 8
jmp 0x50d6c3
mov eax, dword [eax + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c]
test al, 0xf
je 0x50d6f8
test eax, 0x188002
jne 0x50d6f8
test byte [ebp + 0x28], 1
jne 0x50d6f8
cmp byte [ebp + 0x2f], 2
je 0x50d6f8
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x50d6f8
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
js 0x50d72a
mov eax, dword [edi + 0x7c]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x58]
test ecx, eax
jne 0x50d72a
bts ecx, ebx
mov dword [edx + 0x58], ecx
cmp ebx, 1
jne 0x50d72a
push edx
call fcn.004e9570
add esp, 4
mov eax, dword [esp + 0x88]
test byte [eax + 0x24], 0x10
je 0x50d98e
mov eax, dword [ebp]
push 0
push 0x24
push dword [eax]
call fcn.004d5b60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x50d76b
mov ecx, dword [ebp + 0x44]
mov dword [ebx], ecx
mov dword [ebx + 8], 0x14
mov dword [ebx + 0xc], 0
mov dword [ebp + 0x44], ebx
add ebx, 0x10
mov eax, dword [esp + 0x18]
mov dword [eax + 0x38], ebx
test ebx, ebx
je 0x50d98e
mov eax, dword [edi + 0x28]
mov dword [ebx], eax
mov edx, dword [edi + 0x2c]
inc dword [edi + 0x28]
inc edx
mov dword [edi + 0x2c], edx
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x50d7a9
push 0
push edx
push 0x10000
push 0x4d
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50d7dc
mov edi, dword [esp + 0x7c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 4], 0x10000
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x50d7ff
push 0
push edx
push 0
push 0x4b
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50d832
mov edi, dword [esp + 0x7c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
test byte [eax + 0x1c], 0x80
jne 0x50d8ca
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx]
cmp dword [esi + 0x70], ecx
jg 0x50d85c
push 0
push 1
push edx
push 0x76
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50d88b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 1
push dword [edi]
call fcn.004e7540
mov edx, eax
add esp, 0xc
test edx, edx
je 0x50d97e
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x14], 0
mov byte [ecx], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x50d950
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
jmp 0x50d975
mov edi, dword [eax + 8]
test edi, edi
je 0x50d8e1
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x50d8e1
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x50d8d1
mov ecx, dword [esi + 0x6c]
movzx edx, word [edi + 0x32]
mov ebx, dword [ebx]
cmp dword [esi + 0x70], ecx
jg 0x50d900
push 0
push edx
push ebx
push 0x76
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50d92f
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x7c]
push edi
mov edi, ecx
push edi
mov ebx, dword [ecx + 8]
call fcn.004e7650
mov edx, eax
add esp, 8
test edx, edx
je 0x50d97e
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x50d96c
cmp dword [eax + 0x210], 0
jne 0x50d97e
add dword [edx], 0xffffffff
jne 0x50d97e
push edx
push dword [edx + 0xc]
call fcn.004d5c80
add esp, 8
jmp 0x50d97e
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 - 4], edx
mov byte [eax + ecx*4 - 0x13], 0xf8
mov ecx, dword [esp + 0x2c]
and dword [ecx + 0x2c], 0xffffffbf
mov byte [ebp + 0x2d], 0
mov byte [ebp + 0x2f], 3
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
inc eax
mov edx, dword [esp + 0x14]
add ebx, 0x60
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
cmp eax, edx
jl 0x50d330
mov eax, dword [esi + 0x6c]
mov dword [ebp + 0x38], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x50d1aa
xor ecx, ecx
mov dword [esp + 0x88], ecx
test edx, edx
jle 0x50dbf9
lea ebx, [ebp + 0x2f8]
nop dword [eax]
cmp dword [edi + 0x24], 0
jne 0x50d1aa
mov eax, dword [ebx + 0x50]
mov edx, dword [esp + 0x80]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x3c], eax
movzx eax, byte [ebx + 0x3c]
lea eax, [eax + eax*8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 0x30]
mov dword [esp + 0x40], eax
test dl, 0x10
je 0x50db51
test dl, 8
je 0x50da78
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x70], ecx
jg 0x50da40
push 0
push edx
push eax
push 0xa
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50db4a
mov edi, dword [esp + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50db4a
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x70], edx
jg 0x50da9b
push 0
push 0
push 0
push 0xf
push esi
call fcn.004b0300
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x50dace
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xf
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x70], ecx
jg 0x50daf5
push 0
push edx
push eax
push 0xa
push esi
call fcn.004b0300
add esp, 0x14
jmp 0x50db28
mov edi, dword [esp + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x50db3a
mov eax, 0x590c20
jmp 0x50db47
mov eax, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
test eax, fcn.00404000
je 0x50db99
test eax, 0x4000
je 0x50db78
push ebx
push dword [esp + 0x24]
lea eax, [ebp + 0x50]
push dword [esp + 0x24]
push eax
push edi
call fcn.004a2a70
jmp 0x50db88
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push ecx
push ebp
call fcn.004d3bd0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp byte [eax + 0x57], 0
jne 0x50d1aa
push dword [esp + 0x94]
push ebx
push dword [esp + 0x88]
push edi
call fcn.00511240
push dword [esp + 0x30]
mov eax, dword [esi + 0x6c]
push dword [esp + 0x30]
mov dword [ebx + 0x20], eax
push ebx
push dword [esp + 0xa4]
push ebp
push esi
push edi
call fcn.0050dc80
mov ecx, dword [esp + 0xb4]
add esp, 0x2c
mov dword [esp + 0x1c], eax
inc ecx
mov eax, dword [ebx + 0x18]
add ebx, 0x60
mov dword [esp + 0x20], edx
mov dword [ebp + 0x1c], eax
mov dword [esp + 0x88], ecx
cmp ecx, dword [esp + 0x14]
jl 0x50d9e0
mov eax, dword [esi + 0x6c]
mov dword [ebp + 0x3c], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret