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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
xor edi, edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x24], edi
jne 0x50ec31
cmp byte [eax + 0x49], 0
jne 0x50ec31
mov ecx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004f2660
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, edi
je 0x50ec31
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x2c], 0xfff0bdc0
cmp ecx, edi
je 0x50d6fc
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0x2c], edx
cmp dword [eax + 0xc], ecx
je 0x50d6fc
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
add eax, 0x10
inc edx
cmp dword [eax], ecx
jne 0x50d6f0
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0x76
mov edx, esi
mov eax, ebx
call fcn.0050cb50
mov dword [esp + 0x5c], eax
xor eax, eax
add esp, 0xc
cmp dword [esi + 0xc], edi
push esi
setne al
mov dword [esp + 0x78], eax
mov eax, ebx
call fcn.004ee620
add esp, 4
test eax, eax
jne 0x50ec31
mov ecx, dword [esp + 0x9c]
push ecx
mov ecx, esi
mov eax, ebx
call fcn.004f26d0
add esp, 4
test eax, eax
jne 0x50ec31
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x70], edx
inc edx
mov dword [ebx + 0x28], edx
test byte [esi + 0x24], 0x20
mov dword [esp + 0x6c], edx
jne 0x50d774
mov dword [esp + 0x34], edi
jmp 0x50d77f
mov eax, esi
call fcn.004ec5f0
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
xor edi, edi
mov dword [esp + 0x90], edi
test eax, eax
je 0x50d7ad
nop
cmp dword [esp + 0x34], eax
jne 0x50d79a
mov dword [esp + 0x24], edx
inc edx
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x14]
inc edi
test eax, eax
jne 0x50d790
mov dword [esp + 0x90], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50d7c9
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x6c], eax
mov dword [ebx + 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov dword [edx + 0x34], eax
movsx ecx, word [esi + 0x2a]
mov eax, dword [esp + 0x5c]
add ecx, edi
lea edx, [edi + ecx*4 + 2]
push 0
push edx
call fcn.004ab890
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x50ec31
movsx eax, word [esi + 0x2a]
mov ecx, dword [esp + 0x40]
lea eax, [ecx + eax*4]
lea ecx, [eax + edi*4]
mov dword [esp + 0x94], eax
lea eax, [edi + 1]
push eax
push 1
push ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], eax
call fcn.00589f50
mov edx, dword [esp + 0x64]
xor ecx, ecx
add esp, 0xc
mov byte [edx + edi + 1], 0
xor eax, eax
cmp cx, word [esi + 0x2a]
jge 0x50d850
mov ecx, dword [esp + 0x40]
jmp 0x50d840
mov dword [ecx + eax*4], 0xffffffff
movsx edx, word [esi + 0x2a]
inc eax
cmp eax, edx
jl 0x50d840
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
mov edx, 0x200
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc0], ecx
mov word [esp + 0xd0], dx
mov byte [esp + 0x23], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x10], 0
jle 0x50da44
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ecx
lea edi, [esp + 0xbc]
call fcn.004df4c0
add esp, 4
test eax, eax
jne 0x50ec31
movsx eax, word [esi + 0x2a]
xor edi, edi
test eax, eax
jle 0x50d973
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx]
call fcn.004ae7e0
test eax, eax
je 0x50d934
movsx eax, word [esi + 0x2a]
add dword [esp + 0x3c], 0x10
inc edi
cmp edi, eax
jl 0x50d911
jmp 0x50d973
movsx edx, word [esi + 0x28]
cmp edi, edx
jne 0x50d94d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], ecx
jmp 0x50d968
cmp dword [esp + 0x34], 0
je 0x50d968
mov eax, dword [esi + 4]
mov edx, edi
shl edx, 4
test byte [edx + eax + 0xf], 1
je 0x50d968
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [eax + edi*4], ecx
movsx edx, word [esi + 0x2a]
cmp edi, edx
jl 0x50d9da
cmp dword [esp + 0x34], 0
jne 0x50da62
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 4]
mov eax, str._ROWID_
mov ecx, edi
call fcn.004ae7e0
test eax, eax
je 0x50d9c1
mov eax, str.ROWID
mov ecx, edi
call fcn.004ae7e0
test eax, eax
je 0x50d9c1
mov eax, 0x5ffa8c
mov ecx, edi
call fcn.004ae7e0
test eax, eax
jne 0x50da62
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
or edi, 0xffffffff
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], edx
mov eax, str.ROWID
jmp 0x50d9f0
test edi, edi
jge 0x50d9e5
mov eax, str.ROWID
jmp 0x50d9f0
mov ecx, dword [esi + 4]
mov eax, edi
shl eax, 4
mov eax, dword [eax + ecx]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0x10]
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push eax
mov eax, dword [esi]
push eax
push 0x17
mov eax, ebx
call fcn.004eb3a0
add esp, 0x10
cmp eax, 1
je 0x50ec31
cmp eax, 2
jne 0x50da2b
mov ecx, dword [esp + 0x40]
mov dword [ecx + edi*4], 0xffffffff
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
add dword [esp + 0x30], 0x18
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x10], eax
jl 0x50d8d7
mov al, byte [esp + 0x23]
add al, byte [esp + 0x17]
cmp dword [esi + 0x38], 0
mov edi, dword [esp + 0x40]
mov byte [esp + 0x30], al
je 0x50da89
or ecx, 0xffffffff
or edx, 0xffffffff
jmp 0x50da8d
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 8]
push edx
push str.no_such_column:__s
mov esi, ebx
call fcn.004ae670
add esp, 8
mov byte [ebx + 0x11], 1
jmp 0x50ec31
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
movzx eax, byte [esp + 0x30]
push eax
mov dword [esp + 0xac], eax
push esi
mov ecx, edi
mov eax, ebx
call fcn.004f8280
mov esi, dword [esi + 8]
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
test esi, esi
je 0x50db84
cmp byte [esp + 0x30], 0
jne 0x50db46
cmp dword [esp + 0x3c], 1
jg 0x50db46
cmp dword [esi + 0x24], 0
jne 0x50db46
cmp esi, dword [esp + 0x34]
je 0x50db46
movzx edx, word [esi + 0x32]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x50db59
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movzx edx, word [edx]
test dx, dx
jl 0x50db19
movsx edx, dx
cmp dword [edi + edx*4], 0
jge 0x50db19
movzx edx, word [esi + 0x32]
add dword [esp + 0x10], 2
inc ecx
cmp ecx, edx
jl 0x50daf4
jmp 0x50db59
mov edx, 1
add dword [ebx + 0x2c], edx
movzx ecx, word [esi + 0x34]
mov eax, dword [ebx + 0x2c]
add ecx, eax
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x18]
cmp ecx, 5
je 0x50db40
cmp ecx, 0xb
jne 0x50db55
cmp byte [esi + 0x36], 5
jne 0x50db55
mov dword [esp + 0x64], edx
jmp 0x50db55
inc dword [ebx + 0x2c]
movzx edx, word [esi + 0x34]
mov eax, dword [ebx + 0x2c]
add edx, eax
mov dword [ebx + 0x2c], edx
test eax, eax
jne 0x50db66
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov byte [ecx + edx + 1], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x94]
mov dword [edx + ecx*4], eax
mov esi, dword [esi + 0x14]
inc ecx
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x50dac7
cmp dword [esp + 0x64], 0
je 0x50db9f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
push eax
push 1
push ecx
call fcn.00589f50
add esp, 0xc
mov eax, dword [ebx + 8]
test eax, eax
je 0x50dbae
mov ebx, eax
mov dword [esp + 0x38], ebx
jmp 0x50dbcb
cmp dword [ebx + 0x74], 0
jne 0x50dbc0
mov edx, dword [ebx]
test byte [edx + 0x44], 8
jne 0x50dbc0
mov byte [ebx + 0x17], 1
call fcn.004cbf10
mov dword [esp + 0x38], eax
mov ebx, eax
test ebx, ebx
je 0x50ec31
mov esi, dword [ebp + 8]
cmp byte [esi + 0x12], 0
jne 0x50dbe3
or dword [ebx + 0x94], 0x20
cmp dword [esp + 0x50], 0
jne 0x50dbf9
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
je 0x50dc01
mov dword [esp + 0x1c], 1
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x50dc10
mov eax, ecx
mov dword [esp + 0x44], eax
jmp 0x50dc16
mov eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x50dc22
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x54]
mov ecx, dword [esp + 0x2c]
mov edi, 1
shl edi, cl
test edi, edx
jne 0x50dc53
mov ecx, dword [esp + 0x10]
or edx, edi
cmp dword [esp + 0x2c], 1
mov dword [ecx + 0x54], edx
jne 0x50dc53
mov eax, ecx
call fcn.004f1160
mov eax, dword [esp + 0x44]
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x18]
or dword [eax + 0x50], edi
or byte [eax + 0x14], dl
cmp dword [ecx + 0x38], 0
jne 0x50dcd8
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esp + 0x78], eax
inc eax
cmp byte [esp + 0x23], 0
mov dword [esi + 0x2c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], eax
jne 0x50dc90
cmp dword [esp + 0x50], 0
jne 0x50dc90
cmp dword [esp + 0x3c], 0
je 0x50dca3
lea edx, [eax + 1]
mov dword [esp + 0x98], edx
movsx edx, word [ecx + 0x2a]
add edx, eax
mov dword [esi + 0x2c], edx
cmp byte [esp + 0x30], 0
jne 0x50dcb8
cmp dword [esp + 0x50], 0
jne 0x50dcb8
cmp dword [esp + 0x3c], 0
je 0x50dcc2
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x2c]
lea edx, [eax + 1]
mov dword [esp + 0x84], edx
movsx edx, word [ecx + 0x2a]
add edx, eax
mov dword [esi + 0x2c], edx
cmp dword [esp + 0x74], 0
je 0x50dd12
mov eax, dword [esi + 0xec]
mov edx, dword [ecx]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x24]
push eax
push 0
mov dword [esi + 0xec], edx
mov edx, dword [ebp + 0x14]
push 0
push edx
push ecx
push esi
mov dword [esp + 0xc8], esi
call fcn.004f2750
add esp, 0x18
mov eax, dword [ebp + 0x14]
push eax
lea edi, [esp + 0xbc]
call fcn.004df4c0
add esp, 4
test eax, eax
jne 0x50ec31
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x38], 0
je 0x50dd63
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push eax
push edx
push esi
call fcn.0050ed20
add esp, 0x20
jmp 0x50ec31
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
test eax, edx
jne 0x50dda9
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004aba40
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0x4c]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x50ddb7
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x5c]
test byte [eax + 0x1c], 0x80
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
je 0x50ddfe
cmp dword [esi + 0x78], 0
jne 0x50ddfe
cmp byte [esi + 0x12], 0
jne 0x50ddfe
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x50de01
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push edi
push eax
push edi
push 0x46
push ebx
mov dword [esp + 0xb8], eax
call fcn.004cc1f0
add esp, 0x14
jmp 0x50de01
mov edi, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x24], 0x20
jne 0x50de5a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
push edx
push eax
push 0
push 0x49
push ebx
call fcn.004cc1f0
add esp, 0x14
test edi, edi
je 0x50ded5
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x14]
push 0x10
push ecx
push edx
push esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x2c], 1
call fcn.004e5b70
mov edi, dword [esp + 0x9c]
add esp, 0x10
jmp 0x50df7f
mov ecx, dword [esp + 0x34]
movzx ecx, word [ecx + 0x32]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xb4], ecx
movsx ecx, cx
lea edx, [eax + 1]
lea eax, [ecx + eax + 1]
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], ecx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x48], eax
test edi, edi
jne 0x50de2a
mov edi, dword [esi + 0x28]
lea eax, [edi + 1]
mov dword [esi + 0x28], eax
mov eax, edx
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0x49
push ebx
mov dword [esp + 0x7c], edi
call fcn.004cc1f0
mov eax, dword [esp + 0x58]
add esp, 0x14
push 0
push eax
push edi
push 0x71
push ebx
call fcn.004cc1f0
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
add esp, 0x14
call fcn.004cd030
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x38]
cmp byte [esi + 0x12], 0
mov eax, 0x1004
jne 0x50df01
cmp dword [esp + 0x50], 0
jne 0x50df01
cmp dword [esp + 0x3c], 0
jne 0x50df01
cmp byte [esp + 0x30], 0
jne 0x50df01
cmp dword [esp + 0x64], 0
jne 0x50df01
mov eax, 0x100c
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0
push 0
push edx
push eax
push esi
call fcn.0051c2b0
add esp, 0x1c
mov dword [esp + 0x44], eax
test eax, eax
je 0x50ec31
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
movzx eax, byte [eax + 0x31]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x1c], eax
cmp eax, 1
je 0x50df7f
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x50df52
mov eax, esi
cmp dword [esp + 0x1c], 2
mov byte [eax + 0x14], 1
jne 0x50df7f
test edi, edi
jl 0x50df7f
cmp edi, dword [esp + 0x24]
je 0x50df7f
mov eax, dword [esp + 0x58]
mov edx, edi
sub edx, dword [esp + 0x70]
cmp byte [edx + eax], 0
je 0x50df7f
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x24], 0x20
jne 0x50dfcd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
push 0x81
push ebx
call fcn.004cc1f0
add esp, 0x14
cmp dword [esp + 0x1c], 0
jne 0x50e0c9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
push 0
push ecx
push edx
push 0x95
push ebx
call fcn.004cc1f0
add esp, 0x14
jmp 0x50e0c9
movsx edi, word [esp + 0xb4]
xor esi, esi
test edi, edi
jle 0x50e00e
jmp 0x50dfe0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
lea ecx, [esi + eax]
mov eax, dword [edx + 4]
movsx eax, word [eax + esi*2]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
mov ebx, dword [esp + 0x24]
call fcn.004e41b0
mov ebx, dword [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x50dfe0
cmp dword [esp + 0x1c], 0
je 0x50e05c
cmp dword [esp + 0x4c], 0
je 0x50e04b
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
jne 0x50e04b
mov eax, dword [esp + 0x4c]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
mov eax, dword [esi + 0x10]
call fcn.004cccf0
mov byte [esi + 1], 0
mov dword [esi + 0x10], 0
mov byte [esi], 0xab
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x80], edi
mov dword [esp + 0x48], ecx
jmp 0x50e0bf
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
call fcn.004f8ce0
mov edx, dword [esp + 0x48]
push edx
mov esi, eax
mov eax, dword [esp + 0x64]
push edi
push eax
push 0x66
push ebx
call fcn.004cc1f0
add esp, 0x14
push edi
push esi
push eax
push ebx
call fcn.004ccf70
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
push 0x85
push ebx
call fcn.004cc1f0
mov ecx, dword [ebx]
add esp, 0x24
cmp byte [ecx + 0x49], 0
jne 0x50e0bf
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edi
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x8c]
cmp dword [ebp + 0x1c], 0
jne 0x50e2d6
cmp dword [esp + 0x1c], 2
je 0x50e0e7
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0051ccb0
add esp, 4
cmp dword [esp + 0x74], 0
jne 0x50e1b4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], 0
test ecx, ecx
je 0x50e12b
mov eax, dword [esp + 0x88]
test eax, eax
jl 0x50e119
sub eax, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
mov byte [eax + edx], 0
test edi, edi
jl 0x50e12b
mov edx, dword [esp + 0x58]
mov eax, edi
sub eax, dword [esp + 0x70]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x50e159
mov eax, dword [esp + 0x90]
xor ecx, ecx
test edi, edi
setge cl
sub eax, ecx
test eax, eax
jle 0x50e159
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004cc1f0
add esp, 0x14
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
push 0
push 0
push edx
push eax
push 0
push 0x6e
push ecx
mov edi, esi
call fcn.004fbc70
add esp, 0x1c
cmp dword [esp + 0x4c], 0
je 0x50e1ad
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x88]
test eax, eax
jge 0x50e192
lea eax, [ecx - 1]
mov edx, dword [ebx]
cmp byte [edx + 0x49], 0
je 0x50e1a1
mov eax, 0x6403fc
jmp 0x50e1aa
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov edi, dword [esp + 0x8c]
cmp dword [esp + 0x1c], 0
je 0x50e226
cmp dword [esp + 0x74], 0
jne 0x50e1f6
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x88], eax
je 0x50e1f6
cmp edi, eax
je 0x50e1f6
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push 0x1c
mov esi, ebx
call fcn.004cc700
mov esi, dword [ebp + 8]
add esp, 8
cmp dword [esp + 0x1c], 1
je 0x50e208
mov eax, ebx
call fcn.004cc760
mov dword [esp + 0x10], eax
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x48]
jne 0x50e217
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
push 0x32
jmp 0x50e2cd
cmp dword [esp + 0x34], 0
je 0x50e2a6
mov eax, ebx
call fcn.004cc760
mov edx, dword [esp + 0x2c]
push 0
mov edi, eax
mov eax, dword [esp + 0x6c]
push edx
push eax
push 0x24
push ebx
mov dword [esp + 0x24], edi
call fcn.004cc1f0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x7c]
add esp, 0x14
push 0
push ecx
push edx
push 0x80
push ebx
call fcn.004cc1f0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x48]
push eax
push edi
push ecx
push 0x1c
push ebx
call fcn.004cc1f0
mov edx, dword [ebx]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x50e2d6
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 0
jmp 0x50e2d6
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
push edi
push edx
push eax
push 0x29
push ebx
call fcn.004cc1f0
mov ecx, dword [esp + 0x38]
add esp, 0x14
push edi
push eax
push ecx
mov dword [esp + 0x1c], eax
push 0x1f
push ebx
call fcn.004cc1f0
add esp, 0x14
cmp byte [esp + 0x17], 0
je 0x50e300
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
push edi
push edx
push esi
call fcn.004e53f0
add esp, 0xc
push 0
push 0
push edi
push 0xf
push ebx
call fcn.004cc1f0
add esp, 0x14
cmp byte [esp + 0x23], 0
jne 0x50e3a7
cmp dword [esp + 0x3c], 0
jne 0x50e3b2
cmp dword [esp + 0x50], 0
je 0x50e41f
mov ebx, dword [esp + 0x18]
xor edi, edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x54]
push 3
push 0
push ecx
push esi
call fcn.0050d500
or edi, eax
xor edx, edx
add esp, 0x14
xor esi, esi
cmp dx, word [ebx + 0x2a]
mov dword [esp + 0x90], edi
jge 0x50e3f1
mov edi, dword [esp + 0x98]
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
je 0x50e3c7
cmp esi, 0x20
jge 0x50e380
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
jne 0x50e3c7
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x4c]
test byte [eax + ecx + 0xf], 1
jne 0x50e3c7
mov eax, dword [esp + 0x38]
push 0
lea edx, [esi + edi]
push edx
push 0
push 0x49
push eax
call fcn.004cc1f0
add esp, 0x14
jmp 0x50e3df
cmp dword [esp + 0x3c], 0
je 0x50e321
mov ebx, dword [esp + 0x18]
push ebx
push esi
call fcn.004f81a0
add esp, 8
mov edi, eax
jmp 0x50e327
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea ecx, [esi + edi]
push ecx
push edx
push eax
mov eax, esi
call fcn.004e41b0
add esp, 0xc
movsx ecx, word [ebx + 0x2a]
add dword [esp + 0x4c], 0x10
inc esi
cmp esi, ecx
jl 0x50e362
cmp byte [esp + 0x17], 0
jne 0x50e41a
cmp dword [esp + 0x34], 0
jne 0x50e41a
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push 0
push edx
push eax
push 0x4e
push ecx
call fcn.004cc1f0
add esp, 0x14
mov esi, dword [ebp + 8]
jmp 0x50e423
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push edx
push 1
push 1
push eax
mov eax, dword [esp + 0x60]
push esi
call fcn.0050d500
xor ecx, ecx
add esp, 0x14
xor edi, edi
cmp cx, word [ebx + 0x2a]
mov dword [esp + 0x98], eax
jge 0x50e579
mov esi, dword [esp + 0x84]
movsx edx, word [ebx + 0x28]
cmp edi, edx
jne 0x50e4b5
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0xc]
cmp dword [edx + 0x30], ecx
jg 0x50e486
push 0
push esi
push 0
push 0x49
call fcn.004cc1b0
add esp, 0x10
jmp 0x50e56b
lea edx, [ecx + 1]
mov dword [eax + 0x88], edx
mov edx, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax], 0x49
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x50e56b
mov edx, dword [esp + 0x40]
mov eax, dword [edx + edi*4]
test eax, eax
jl 0x50e51a
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 + 4]
test eax, eax
je 0x50e4ed
cmp byte [eax], 0xa4
jne 0x50e4ed
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push 0
push esi
push edx
push 0x4e
push ecx
call fcn.004cc1f0
add esp, 0x14
jmp 0x50e56b
mov edx, dword [ebp + 8]
push esi
push eax
push edx
call fcn.004e43f0
add esp, 0xc
cmp eax, esi
je 0x50e56b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x50e56b
push 0
push esi
push eax
push 0x4f
push ecx
call fcn.004cc1f0
add esp, 0x14
jmp 0x50e56b
test dword [esp + 0x9c], 1
je 0x50e556
cmp edi, 0x1f
jg 0x50e556
mov eax, dword [esp + 0x98]
mov edx, 1
mov ecx, edi
shl edx, cl
test eax, edx
jne 0x50e556
mov ecx, dword [esp + 0x38]
push 0
push esi
push 0
push 0x49
push ecx
call fcn.004cc1f0
add esp, 0x14
jmp 0x50e56b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push esi
push edx
push eax
mov eax, edi
call fcn.004e41b0
add esp, 0xc
movsx ecx, word [ebx + 0x2a]
inc edi
inc esi
cmp edi, ecx
jl 0x50e458
test byte [esp + 0x9c], 1
mov edi, dword [esp + 0x38]
je 0x50e71b
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
push edx
push edi
call fcn.004f8dc0
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x18]
add esp, 8
test esi, esi
je 0x50e5f2
lea esp, [esp]
cmp byte [esi + 8], 0x76
jne 0x50e5eb
cmp byte [esi + 9], 1
jne 0x50e5eb
mov eax, dword [esi + 0x10]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0050caf0
add esp, 4
test eax, eax
je 0x50e5eb
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push esi
push ecx
call fcn.0050d390
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x50e5b0
xor edx, edx
cmp dword [esp + 0x34], edx
je 0x50e677
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x50e621
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
push ecx
push ebx
push edx
push 0x1c
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50e656
mov esi, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x24]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x48]
mov byte [eax], 0x1c
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
jne 0x50e6d1
mov ecx, dword [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
jmp 0x50e6d1
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50e69e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push ebx
push eax
push 0x1f
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50e6d1
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax], 0x1f
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x18]
xor edx, edx
xor esi, esi
cmp dx, word [eax + 0x2a]
jge 0x50e71b
mov ecx, dword [esp + 0x40]
cmp dword [ecx + esi*4], 0
jge 0x50e712
movsx edx, word [eax + 0x28]
cmp esi, edx
je 0x50e712
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
lea ecx, [esi + eax]
push ecx
push edx
push edi
mov eax, esi
call fcn.004e41b0
add esp, 0xc
mov eax, ebx
movsx ecx, word [eax + 0x2a]
inc esi
cmp esi, ecx
jl 0x50e6df
cmp dword [esp + 0x74], 0
jne 0x50e9b7
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push edx
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebp + 8]
push esi
push ecx
push edx
push eax
call fcn.004fa490
add esp, 0x34
cmp dword [esp + 0x3c], ebx
je 0x50e79b
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edx
call fcn.004f7c40
add esp, 0x18
xor edx, edx
cmp dword [esp + 0x64], edx
jne 0x50e7ad
cmp byte [esp + 0x30], dl
je 0x50e879
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [esp + 0x34], edx
je 0x50e82b
cmp dword [eax + 0x30], ecx
jg 0x50e7d7
mov ecx, dword [esp + 0x48]
push ecx
push 0
push esi
push 0x1c
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50e808
mov ebx, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov word [eax + 2], bx
mov ebx, dword [esp + 0x48]
mov byte [eax], 0x1c
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
jne 0x50e827
mov ecx, dword [edi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x80]
mov byte [ecx + 1], 0xfd
mov dword [ecx + 0x10], edx
mov ebx, eax
jmp 0x50e879
cmp dword [eax + 0x30], ecx
jg 0x50e848
mov ecx, dword [esp + 0x28]
push ecx
push 0
push esi
push 0x1f
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
mov ebx, eax
jmp 0x50e879
mov ebx, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov word [eax + 2], bx
mov ebx, dword [esp + 0x28]
mov dword [eax + 0xc], ebx
mov byte [eax], 0x1f
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov ebx, ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x6c]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.004f3480
add esp, 0x14
cmp dword [esp + 0x3c], 1
jg 0x50e8a7
cmp byte [esp + 0x30], 0
je 0x50e8f4
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50e8c8
push 0
push 0
push esi
push 0x7c
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50e8f4
mov ecx, dword [edi + 0x58]
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor edx, edx
xor ecx, ecx
mov byte [eax], 0x7c
mov word [eax + 2], dx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x64], 0
jne 0x50e902
cmp byte [esp + 0x30], 0
je 0x50e92a
mov ecx, dword [edi + 0x88]
test ebx, ebx
jge 0x50e90f
lea ebx, [ecx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x50e91e
mov eax, 0x6403fc
jmp 0x50e927
mov eax, dword [edi + 0x58]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x18]
je 0x50e956
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push 0
push ebx
push ecx
call fcn.004f7c40
add esp, 0x18
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x54]
xor edx, edx
cmp dword [esp + 0x1c], 2
push 0
setne dl
push 0
dec edx
and edx, 2
or edx, 4
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
push ebx
push eax
call fcn.004fba40
add esp, 0x24
cmp dword [esp + 0x3c], 0
je 0x50e9b7
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov esi, ebx
call fcn.004f8a80
add esp, 0x14
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x10]
xor edx, edx
cmp ecx, edx
je 0x50ea17
mov eax, dword [edi + 0x88]
mov esi, dword [edi + 0xc]
cmp dword [esi + 0x30], eax
jg 0x50e9e8
push edx
push 1
push ecx
push 0x53
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ea17
lea esi, [eax + 1]
mov dword [edi + 0x88], esi
mov esi, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov byte [eax], 0x53
mov word [eax + 2], si
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov esi, dword [esp + 0x50]
test esi, esi
je 0x50ea62
nop
cmp byte [esi + 8], 0x76
jne 0x50ea5b
cmp byte [esi + 9], 2
jne 0x50ea5b
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
push ecx
call fcn.0050caf0
add esp, 4
test eax, eax
je 0x50ea5b
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push ebx
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edx
call fcn.0050d390
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x50ea20
cmp dword [esp + 0x1c], 1
je 0x50eb69
cmp dword [esp + 0x1c], 2
jne 0x50eaa1
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50ea8f
mov edx, dword [edi + 0x88]
lea ecx, [ebx*4 + 4]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x44]
push eax
call fcn.0051ccb0
add esp, 4
jmp 0x50eb69
xor ecx, ecx
cmp dword [esp + 0x34], ecx
je 0x50eb1d
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ecx
je 0x50eac4
lea edx, [ebx*4 + 4]
sub eax, edx
mov edx, dword [edi + 0x88]
mov dword [eax], edx
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50eaef
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x68]
push 0
push eax
push ecx
push 5
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50eb69
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
mov byte [eax], 5
mov dword [eax + 8], edx
jmp 0x50eb5f
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50eb3e
push 0
push ebx
push 0
push 0xb
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50eb69
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov byte [eax + 1], 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50eb88
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp byte [eax + 0x12], 0
jne 0x50ebaa
cmp dword [eax + 0x78], 0
jne 0x50ebaa
cmp dword [ebp + 0x1c], 0
jne 0x50ebaa
cmp dword [eax + 0x70], 0
je 0x50ebaa
mov esi, eax
call fcn.004f9200
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x50ec31
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50ebd6
push 0
push 1
push ecx
push 0x51
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ec06
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x51
mov word [eax + 2], dx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
push 1
mov ebx, edi
call fcn.004ce040
mov eax, dword [edi]
add esp, 4
cmp byte [eax + 0x49], 0
jne 0x50ec31
mov ecx, dword [edi + 0x64]
push 0
push 1
push str.rows_updated
or eax, 0xffffffff
call fcn.004cb4c0
add esp, 0xc
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x50ec49
mov ecx, dword [esp + 0xac]
mov dword [eax + 0xec], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x5c]
test esi, esi
je 0x50ece9
test edi, edi
je 0x50ec91
cmp dword [edi + 0x1d8], 0
je 0x50ec71
mov eax, esi
mov ecx, edi
call fcn.004ab500
jmp 0x50ece9
cmp esi, dword [edi + 0x128]
jb 0x50ec91
cmp esi, dword [edi + 0x12c]
jae 0x50ec91
mov edx, dword [edi + 0x124]
mov dword [esi], edx
mov dword [edi + 0x124], esi
jmp 0x50ece9
cmp dword [0x631928], 0
je 0x50ecdf
mov eax, dword [0x640888]
test eax, eax
je 0x50ecad
push eax
call dword [0x631984]
add esp, 4
push esi
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push esi
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x50ece9
push eax
call dword [0x63198c]
jmp 0x50ece6
push esi
call dword [0x631958]
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov eax, edi
call fcn.004f0b10
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x50ed08
push eax
push edi
call fcn.004e1850
add esp, 8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50ed19
push eax
push edi
call fcn.004e0a30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret