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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
mov esi, dword [edi]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x48], edx
movq qword [esp + 0xa8], xmm0
mov dword [esp + 0x20], esi
cmp dword [edi + 0x40], edx
jne 0x510902
cmp byte [esi + 0x41], dl
jne 0x510902
mov edx, dword [esp + 0x50]
call fcn.004f46b0
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
je 0x5108fc
mov ecx, dword [edi]
mov edx, dword [esi + 0x44]
call fcn.00503380
mov dword [esp + 0x14], eax
mov edx, esi
lea eax, [esp + 0x70]
mov ecx, edi
push eax
push dword [esp + 0x10]
push 0x6e
call fcn.0050e690
add esp, 0xc
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc]
mov edx, esi
mov ecx, edi
mov dword [esp + 0x88], eax
call fcn.004f06d0
test eax, eax
jne 0x5108fc
push dword [esp + 0x70]
mov edx, esi
mov ecx, edi
call fcn.004f4740
add esp, 4
test eax, eax
jne 0x5108fc
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x84], eax
mov dword [ecx + 0x38], eax
inc eax
inc dword [edi + 0x44]
test byte [esi + 0x2c], 0x20
mov edx, dword [edi + 0x44]
mov dword [esp + 0x68], eax
jne 0x50f199
mov dword [esp + 0x30], 0
jmp 0x50f1a4
mov ecx, esi
call fcn.004eec20
mov dword [esp + 0x30], eax
mov eax, dword [esp + 8]
xor esi, esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x50f1e0
mov eax, dword [ecx + 0x34]
and al, 3
cmp al, 2
jne 0x50f1ce
cmp dword [esp + 0x30], 0
je 0x50f1ce
mov eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [edx + 0x38], eax
inc dword [edi + 0x44]
inc esi
mov ecx, dword [ecx + 0x14]
mov edx, dword [edi + 0x44]
test ecx, ecx
jne 0x50f1b1
mov eax, dword [esp + 8]
movsx eax, word [eax + 0x26]
mov ecx, dword [esp + 0x20]
add eax, esi
push 0
lea eax, [eax*4 + 2]
add eax, esi
push eax
call fcn.004b49d0
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
test edx, edx
je 0x5108fe
mov eax, dword [esp + 8]
movsx ecx, word [eax + 0x26]
lea eax, [edx + ecx*4]
lea ecx, [eax + esi*4]
mov dword [esp + 0x90], eax
lea eax, [esi + 1]
mov dword [esp + 0x64], ecx
push eax
push 1
push ecx
mov dword [esp + 0xac], eax
call fcn.006e6ec0
mov eax, dword [esp + 0x70]
add esp, 0xc
xor ecx, ecx
mov byte [eax + esi + 1], 0
xor eax, eax
mov esi, dword [esp + 8]
cmp ax, word [esi + 0x26]
jge 0x50f274
mov edi, dword [esp + 0x18]
nop word [eax + eax]
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [esi + 0x26]
cmp ecx, eax
jl 0x50f260
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov edx, dword [esp + 0xc]
xor cl, cl
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xb4], eax
xor al, al
movaps xmmword [esp + 0xc0], xmm0
cmp dword [edx], 0
mov dword [esp + 0xb0], edi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1f], cl
mov dword [esp + 0x3c], 0
jle 0x50f46d
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov edx, dword [edx + 4]
mov edx, dword [ecx + edx]
lea ecx, [esp + 0xb0]
call fcn.004e3e40
test eax, eax
jne 0x5108ee
mov edx, dword [esp + 8]
xor esi, esi
movsx eax, word [edx + 0x26]
test eax, eax
jle 0x50f374
mov eax, dword [esp + 0xc]
mov edi, dword [edx + 4]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
nop
push dword [eax + 4]
push dword [edi]
call fcn.004b7610
mov edx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x50f327
movsx eax, word [edx + 0x26]
inc esi
add edi, 0x18
cmp esi, eax
mov eax, dword [esp + 0x54]
jl 0x50f300
jmp 0x50f370
movsx eax, word [edx + 0x24]
cmp esi, eax
jne 0x50f340
mov eax, dword [esp + 0x54]
mov byte [esp + 0x1f], 1
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
jmp 0x50f365
cmp dword [esp + 0x30], 0
je 0x50f365
mov ecx, dword [edx + 4]
lea eax, [esi + esi*2]
test byte [ecx + eax*8 + 0x17], 1
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov dword [ecx + esi*4], eax
mov edi, dword [esp + 0x10]
movsx eax, word [edx + 0x26]
cmp esi, eax
jl 0x50f3ea
cmp dword [esp + 0x30], 0
jne 0x50f504
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x40]
push str._ROWID_
mov eax, dword [eax + 4]
add edi, eax
mov esi, dword [edi + 4]
push esi
call fcn.004b7610
add esp, 8
test eax, eax
je 0x50f3d1
push str.ROWID
push esi
call fcn.004b7610
add esp, 8
test eax, eax
je 0x50f3d1
push 0x793310
push esi
call fcn.004b7610
add esp, 8
test eax, eax
jne 0x50f504
mov eax, dword [edi]
or esi, 0xffffffff
mov edi, dword [esp + 0x10]
mov edx, str.ROWID
mov byte [esp + 0x1f], 1
mov dword [esp + 0x5c], eax
jmp 0x50f402
test esi, esi
jns 0x50f3f9
mov edi, dword [esp + 0x10]
mov edx, str.ROWID
jmp 0x50f402
mov eax, dword [edx + 4]
lea ecx, [esi + esi*2]
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov eax, dword [esp + 0xc]
mov ecx, edi
push edx
mov edx, 0x17
push dword [eax]
call fcn.004ed830
add esp, 0xc
cmp eax, 1
je 0x5108ee
cmp eax, 2
jne 0x50f441
mov eax, dword [esp + 0x18]
mov dword [eax + esi*4], 0xffffffff
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
inc eax
mov ecx, dword [esp + 0x40]
add ecx, 0x18
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
cmp eax, dword [edx]
jl 0x50f2c0
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x2c]
mov cl, byte [esp + 0x1f]
add al, cl
mov edx, esi
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x6c], al
movzx eax, al
push eax
push dword [esp + 0x1c]
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.004fa480
mov edi, dword [esi + 8]
xor ecx, ecx
add esp, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], ecx
test edi, edi
je 0x50f57e
cmp byte [esp + 0x6c], 0
jne 0x50f549
test eax, eax
jne 0x50f549
cmp dword [edi + 0x24], eax
jne 0x50f549
cmp edi, dword [esp + 0x30]
je 0x50f549
movzx esi, word [edi + 0x2e]
xor edx, edx
mov dword [esp + 0x38], eax
test esi, esi
je 0x50f557
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x18]
movsx eax, word [ecx]
cmp dword [esi + eax*4], 0
movzx esi, word [edi + 0x2e]
jge 0x50f539
inc edx
add ecx, 2
cmp edx, esi
jl 0x50f4e1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
jmp 0x50f557
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 4]
push dword [eax + ecx*8 + 4]
push str.no_such_column:__s
push esi
call fcn.004b73f0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov byte [esi + 0x11], 1
mov esi, dword [esp + 0x20]
jmp 0x510906
mov ecx, dword [esp + 0x10]
inc dword [ecx + 0x48]
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x58]
jmp 0x50f553
mov eax, dword [esp + 0x10]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x50f560
mov edx, dword [esp + 0x64]
mov byte [ecx + edx + 1], 0
mov edx, dword [esp + 0x90]
mov dword [edx + ecx*4], eax
inc ecx
mov edi, dword [edi + 0x14]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], ecx
test edi, edi
jne 0x50f4b2
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 8]
test esi, esi
jne 0x50f5c2
mov ecx, edi
call fcn.004d1a20
mov esi, eax
mov dword [edi + 8], esi
test esi, esi
je 0x50f5a5
mov edx, 0x99
mov ecx, esi
call fcn.004d1c00
cmp dword [edi + 0x198], 0
jne 0x50f5ba
mov eax, dword [edi]
test byte [eax + 0x3c], 8
jne 0x50f5ba
mov byte [edi + 0x17], 1
test esi, esi
je 0x5108ee
cmp byte [edi + 0x12], 0
jne 0x50f5cc
or dword [esi + 0x58], 0x10
mov eax, dword [edi + 0x198]
test eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmovne edx, eax
cmovne edi, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x50f628
mov eax, dword [esp + 0x14]
bts ecx, eax
mov eax, dword [edx]
mov dword [edx + 0x14c], ecx
mov ecx, dword [esp + 0x14]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [edx + ecx*4 + 0x150], eax
cmp ecx, 1
jne 0x50f628
mov ecx, edx
call fcn.004f30a0
mov eax, dword [edi + 0x148]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x14]
bts eax, ecx
or byte [edi + 0x14], 1
mov dword [edi + 0x148], eax
test byte [edx + 0x2c], 0x10
je 0x50f68e
push dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
push dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x68]
push edi
push edx
mov edx, dword [esp + 0x68]
call fcn.00510a00
mov edx, dword [esp + 0x30]
add esp, 0x18
mov esi, dword [esp + 0x20]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x50], 0
jmp 0x510906
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x48]
inc eax
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x98], eax
lea ecx, [eax + 1]
mov dword [esp + 0x74], ecx
mov dword [edi + 0x48], ecx
mov dword [esp + 0x34], ecx
jne 0x50f6c1
cmp dword [esp + 0x4c], 0
jne 0x50f6c1
mov eax, dword [esp + 0x60]
test eax, eax
je 0x50f6d8
lea eax, [ecx + 1]
mov dword [esp + 0x9c], eax
movsx eax, word [edx + 0x26]
add eax, ecx
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x60]
cmp byte [esp + 0x6c], 0
jne 0x50f6ea
cmp dword [esp + 0x4c], 0
jne 0x50f6ea
test eax, eax
je 0x50f6f4
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x74], eax
mov ecx, dword [edi + 0x48]
lea eax, [ecx + 1]
mov dword [esp + 0x3c], eax
movsx eax, word [edx + 0x26]
add eax, ecx
mov ecx, dword [esp + 0x88]
mov dword [edi + 0x48], eax
test ecx, ecx
je 0x50f743
mov eax, dword [edi + 0x1ec]
mov ecx, edi
push dword [esp + 0x24]
mov dword [esp + 0xac], eax
mov eax, dword [edx]
push dword [esp + 0x80]
mov dword [esp + 0xb4], edi
mov dword [edi + 0x1ec], eax
call fcn.004f47d0
add esp, 8
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xb0]
call fcn.004e3e40
test eax, eax
jne 0x5108ee
mov eax, dword [esp + 8]
test byte [eax + 0x2c], 0x20
jne 0x50f886
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f787
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50f7be
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x98]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov ecx, edi
push 4
push 0
push 0
push dword [esp + 0x8c]
call fcn.0051adf0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x5108ee
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 0x40]
movzx eax, byte [eax + 0x26]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x58], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f820
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50f856
mov ecx, dword [esp + 0x58]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x67
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50f85a
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x40], 0
jne 0x50f878
push edx
push dword [esp + 0x9c]
mov edx, pe_nt_image_headers32
mov ecx, esi
call fcn.004d1cd0
add esp, 8
mov ecx, dword [esp + 0x14]
call fcn.0051b820
jmp 0x50faf3
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x48]
movzx eax, word [eax + 0x2e]
cwde
lea edx, [ecx + 1]
mov dword [esp + 0x14], eax
inc ecx
add eax, ecx
mov dword [esp + 0x58], edx
mov dword [edi + 0x48], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x80], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f8d7
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50f907
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
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 [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x28], ecx
cmp dword [eax + 0x54], ecx
jg 0x50f92f
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x50f92b
mov dword [esp + 0x28], 1
jmp 0x50f966
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0x39
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x30]
mov edi, dword [edi + 8]
push 0xfffffffffffffffa
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004f3960
add esp, 4
or edx, 0xffffffff
mov ecx, edi
push eax
call fcn.004d23c0
push dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
push 4
push 0
push 0
push dword [esp + 0x94]
call fcn.0051adf0
add esp, 0x1c
mov dword [esp + 0x44], eax
test eax, eax
je 0x5108ee
mov ecx, dword [eax + 0x3c]
xor edi, edi
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 0x40]
movzx eax, byte [eax + 0x26]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x50fa0e
nop word [eax + eax]
mov eax, dword [esp + 0x58]
mov ecx, esi
mov edx, dword [esp + 8]
add eax, edi
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
movsx eax, word [eax + edi*2]
push eax
push dword [esp + 0x2c]
call fcn.004e76b0
mov eax, dword [esp + 0x20]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x50f9e0
cmp dword [esp + 0x40], 0
je 0x50fa6c
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x20]
jge 0x50fa57
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea edi, [eax + ecx*4]
mov ecx, dword [esi]
call fcn.004d21c0
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9a
mov ecx, dword [esi + 0x20]
dec ecx
cmp dword [esp + 0x28], ecx
jne 0x50fa57
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x48], eax
jmp 0x50fae6
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.004fb280
mov edx, dword [esp + 0x1c]
add esp, 4
mov ecx, esi
push eax
push dword [esp + 0x50]
push edx
push dword [esp + 0x68]
mov edx, 0x31
call fcn.004d1d40
mov eax, dword [esi + 0x18]
add esp, 0x14
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x50faaf
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50fae6
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x6e
mov byte [eax + ecx*4 + 3], 0
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 + 0x44]
call fcn.0051b820
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test byte [eax + 0x18], 0x80
je 0x50fb60
cmp dword [edi + 0x19c], 0
jne 0x50fb60
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x50fb29
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50fb60
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x94]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
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 edi, dword [esi + 0x18]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x14], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x50fb95
mov edx, dword [edi + 0x70]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
test eax, eax
je 0x50fba3
mov dword [eax + ecx*4], 0xffffffff
cmp dword [esp + 0x88], 0
not ecx
mov dword [esp + 0x14], ecx
jne 0x50fc40
cmp dword [ebp + 0x10], 5
je 0x50fbd7
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x50fbf0
cmp byte [eax + 0x32], 5
je 0x50fbd7
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50fbc8
jmp 0x50fbf0
push dword [esp + 0xa0]
push 1
push dword [esp + 0x6c]
call fcn.006e6ec0
mov ecx, dword [esp + 0x14]
add esp, 0xc
cmp dword [esp + 0x40], 0
mov edi, dword [esp + 0x84]
je 0x50fc21
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x64]
test eax, eax
js 0x50fc13
sub eax, edi
mov byte [eax + edx], 0
mov eax, dword [esp + 0x38]
test eax, eax
js 0x50fc21
sub eax, edi
mov byte [eax + edx], 0
push 0
push 0
push dword [esp + 0x6c]
mov edx, ecx
mov ecx, dword [esp + 0x1c]
push edi
push 0x37
call fcn.004fe470
mov ecx, dword [esp + 0x28]
add esp, 0x14
jmp 0x50fc47
mov edi, dword [esp + 0x84]
cmp dword [esp + 0x40], 0
je 0x50fceb
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
sub eax, edi
cmp byte [eax + edx], 0
je 0x50fc88
cmp dword [esp + 0x88], 0
jne 0x50fc88
push dword [esp + 0x8c]
push dword [esp + 0x4c]
push ecx
push edx
mov edx, 0x44
mov ecx, esi
call fcn.004d1e60
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x50fcaa
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50fef6
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
cmp dword [esp + 0x30], 0
mov word [eax + ecx*4], 0x4c
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x34]
mov byte [ecx + 3], 0
cmovne eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x50fef6
cmp dword [esp + 0x30], 0
je 0x50fe4d
mov edi, dword [esi + 0x18]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x50fd2b
mov edx, dword [edi + 0x70]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
test eax, eax
je 0x50fd39
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esi + 0x18]
not ecx
mov edi, dword [esi + 0x20]
mov dword [esp + 0x28], ecx
cmp dword [eax + 0x54], edi
jg 0x50fd55
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50fd8c
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 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 [esi + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x78], edi
cmp dword [eax + 0x54], edi
jg 0x50fdb0
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x50fdb0
mov dword [esp + 0x78], 1
jmp 0x50fde7
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x65
mov byte [eax + ecx*4 + 3], 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 [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x50fe04
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x50fe04
mov edi, 1
jmp 0x50fe38
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x44
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff2
push 0
mov edx, edi
mov ecx, esi
call fcn.004d23c0
add esp, 8
jmp 0x50fef6
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
cmp dword [eax + 0x54], edx
jg 0x50fe75
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x50fe71
mov dword [esp + 0x28], 1
jmp 0x50feac
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x98]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x81
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x50fec2
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50fef6
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x1f], 0
mov edi, dword [esp + 0x10]
je 0x50ff65
push dword [esp + 0x74]
mov edx, dword [esp + 0x60]
mov ecx, edi
call fcn.004e8c00
mov eax, dword [esi + 0x18]
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x54], ecx
jg 0x50ff31
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x50ff65
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x26
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x2c], 0
jne 0x51005b
cmp dword [esp + 0x60], 0
jne 0x510066
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x510113
xor ecx, ecx
mov dword [esp + 0x2c], ecx
push dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, edi
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x1c]
call fcn.0050ef20
mov ecx, dword [esp + 0x40]
xor edx, edx
or ecx, eax
add esp, 0x14
mov eax, dword [esp + 8]
xor edi, edi
mov dword [esp + 0x2c], ecx
cmp dx, word [eax + 0x26]
jge 0x5100b7
mov dword [esp + 0x5c], edx
nop word [eax + eax]
cmp ecx, 0xffffffff
je 0x51007a
cmp edi, 0x20
jge 0x50fff1
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x2c], eax
jne 0x51007a
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
test byte [eax + edx + 0x17], 1
jne 0x51007a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x54], ecx
jg 0x510021
mov ecx, esi
call fcn.004d1b20
mov edx, dword [esp + 0x5c]
test eax, eax
jne 0x51009b
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x9c]
add eax, edi
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x51009b
cmp dword [esp + 0x60], 0
je 0x50ff87
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.004fa390
mov dword [esp + 0x2c], eax
jmp 0x50ff8d
mov eax, dword [esp + 0x9c]
mov ecx, esi
mov edx, dword [esp + 8]
add eax, edi
push eax
push edi
push dword [esp + 0x2c]
call fcn.004e76b0
mov edx, dword [esp + 0x68]
add esp, 0xc
mov eax, dword [esp + 8]
inc edi
mov ecx, dword [esp + 0x2c]
add edx, 0x18
mov dword [esp + 0x5c], edx
movsx eax, word [eax + 0x26]
cmp edi, eax
jl 0x50ffd0
cmp byte [esp + 0x1f], 0
jne 0x51010f
cmp dword [esp + 0x30], 0
jne 0x51010f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x5100db
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x51010f
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x21
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x4c]
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push dword [esp + 0xc]
push 1
push 1
push dword [esp + 0x1c]
call fcn.0050ef20
mov edx, dword [esp + 0x1c]
add esp, 0x14
mov dword [esp + 0x38], eax
xor edi, edi
xor eax, eax
cmp ax, word [edx + 0x26]
jge 0x510242
movsx eax, word [edx + 0x24]
cmp edi, eax
jne 0x510174
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x54], ecx
jg 0x5101e4
mov ecx, esi
call fcn.004d1b20
mov edx, dword [esp + 8]
test eax, eax
jne 0x510235
jmp 0x5101e0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
test ecx, ecx
js 0x5101a4
mov eax, dword [esp + 0x3c]
add eax, edi
push eax
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + eax*8]
call fcn.004e8c00
add esp, 4
jmp 0x510231
test dword [esp + 0x70], 1
je 0x51021b
cmp edi, 0x1f
jg 0x51021b
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esp + 0x38], eax
jne 0x51021b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x54], ecx
jg 0x5101e4
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x510231
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], 0
add eax, edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x510235
mov eax, dword [esp + 0x3c]
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x2c]
call fcn.004e76b0
add esp, 0xc
mov edx, dword [esp + 8]
movsx eax, word [edx + 0x26]
inc edi
cmp edi, eax
jl 0x510144
test byte [esp + 0x70], 1
je 0x510378
push dword [esp + 0x3c]
mov ecx, esi
call fcn.004fb300
mov edx, dword [esp + 0x50]
add esp, 4
mov ecx, dword [esp + 0x10]
push dword [esp + 0x28]
push dword [ebp + 0x10]
push dword [esp + 0x3c]
push dword [esp + 0x14]
push 1
push dword [esp + 0x20]
push 0x6e
call fcn.0050eeb0
mov edi, dword [esi + 0x20]
add esp, 0x1c
cmp dword [esp + 0x30], 0
mov eax, dword [esi + 0x18]
je 0x5102f1
cmp dword [eax + 0x54], edi
jg 0x5102a6
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x5102a6
mov edi, 1
jmp 0x5102da
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x44
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff2
push dword [esp + 0x90]
mov edx, edi
mov ecx, esi
call fcn.004d23c0
add esp, 8
jmp 0x510335
cmp dword [eax + 0x54], edi
jg 0x510301
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x510335
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 8]
xor eax, eax
xor edi, edi
cmp ax, word [edx + 0x26]
jge 0x510378
mov eax, dword [esp + 0x18]
cmp dword [eax + edi*4], 0
jge 0x51036f
movsx eax, word [edx + 0x24]
cmp edi, eax
je 0x51036f
mov eax, dword [esp + 0x3c]
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x2c]
call fcn.004e76b0
mov edx, dword [esp + 0x14]
add esp, 0xc
movsx eax, word [edx + 0x26]
inc edi
cmp edi, eax
jl 0x510343
cmp dword [esp + 0x88], 0
jne 0x5105db
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x2c]
xor edi, edi
push dword [ebp + 0x10]
mov dword [esp + 0x7c], edi
push dword [esp + 0x78]
push dword [esp + 0x44]
push dword [esp + 0x88]
push dword [esp + 0x80]
push dword [esp + 0x40]
push dword [esp + 0xb0]
call fcn.004fd0f0
add esp, 0x24
cmp dword [esp + 0x60], edi
je 0x5103e8
push dword [esp + 0x54]
mov edx, dword [esp + 0xc]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edi
push dword [esp + 0x40]
call fcn.004f9d70
add esp, 0x10
cmp dword [esp + 0x70], edi
jne 0x5103f9
cmp byte [esp + 0x6c], 0
je 0x5104b2
cmp dword [esp + 0x30], edi
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
je 0x510467
cmp dword [eax + 0x54], edi
jg 0x51041c
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x51041c
mov edi, 1
jmp 0x510450
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x44
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff2
push dword [esp + 0x90]
mov edx, edi
mov ecx, esi
call fcn.004d23c0
add esp, 8
jmp 0x5104b2
cmp dword [eax + 0x54], edi
jg 0x51047e
mov ecx, esi
call fcn.004d1b20
test eax, eax
je 0x51047e
mov edi, 1
jmp 0x5104b2
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x90]
mov edx, dword [esp + 0xc]
push dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x2c]
call fcn.004f5660
add esp, 0xc
cmp dword [esp + 0x60], 0
jne 0x5104e7
mov al, byte [esp + 0x6c]
test al, al
jne 0x5104e7
cmp dword [esp + 0x30], 0
je 0x51053d
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x54], ecx
jg 0x510505
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x510539
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x5f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esp + 0x6c]
cmp dword [esp + 0x70], 0
jne 0x510548
test al, al
je 0x510563
mov edx, dword [esi + 0x20]
cmp edx, edi
jbe 0x510559
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x10]
je 0x51058a
push dword [esp + 0x54]
mov edx, dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x7c]
push 0
call fcn.004f9d70
add esp, 0x10
mov edx, dword [esp + 8]
mov ecx, edi
push 0
push 0
push 1
push dword [esp + 0x9c]
push dword [esp + 0x84]
push dword [esp + 0x7c]
push dword [esp + 0x3c]
call fcn.004fe1a0
add esp, 0x1c
cmp dword [esp + 0x60], 0
je 0x5105df
push dword [esp + 0x54]
mov edx, dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push dword [esp + 0x18]
call fcn.004fafe0
add esp, 0x10
jmp 0x5105df
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test byte [eax + 0x18], 0x80
je 0x51063f
cmp dword [edi + 0x19c], 0
jne 0x51063f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x510608
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x51063f
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x94]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
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 dword [esp + 0x28]
mov edi, dword [esp + 0xc]
push dword [ebp + 0x10]
mov edx, dword [esp + 0x54]
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push edi
push 2
push dword [esp + 0x20]
push 0x6e
call fcn.0050eeb0
add esp, 0x1c
cmp dword [esp + 0x40], 0
jne 0x51071e
cmp dword [esp + 0x30], 0
je 0x5106d0
mov edi, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
not edi
test edi, edi
js 0x510693
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x510693
mov eax, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x5106b0
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x51071a
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
mov word [eax + ecx*4], 9
jmp 0x510701
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x5106e6
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x51071a
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x18]
not eax
mov dword [esp + 0x14], eax
test eax, eax
js 0x510744
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x510744
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov edx, dword [edi + 8]
mov dword [esp + 0x78], edx
test edx, edx
je 0x5107e0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x54], eax
nop
cmp byte [eax], 0
je 0x5107cb
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x51078f
mov ecx, esi
call fcn.004d1b20
mov edx, dword [esp + 0x78]
test eax, eax
jne 0x5107c3
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
mov edx, dword [edx + 0x14]
inc eax
inc ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ecx
test edx, edx
jne 0x510770
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x24], eax
jge 0x510834
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x510800
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x510834
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
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 + 0x10]
cmp byte [eax + 0x12], 0
jne 0x510852
cmp dword [eax + 0x19c], 0
jne 0x510852
mov ecx, eax
call fcn.004fb970
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x18], 0x80
je 0x5108f4
cmp dword [eax + 0x19c], 0
jne 0x5108f4
cmp byte [eax + 0x12], 0
jne 0x5108f4
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x51088d
mov ecx, esi
call fcn.004d1b20
test eax, eax
jne 0x5108c4
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x94]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
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
mov edx, 1
mov ecx, esi
call fcn.004d3460
mov eax, dword [esi]
cmp byte [eax + 0x41], 0
jne 0x5108ee
mov ecx, dword [esi + 0x10]
mov edx, str.rows_updated
push 0
push 1
push 0xffffffffffffffff
call fcn.004d1160
add esp, 0xc
mov edx, dword [esp + 0x18]
jmp 0x5108fe
mov edx, dword [esp + 0x18]
mov esi, ecx
jmp 0x510902
xor edx, edx
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x51091e
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0x1ec], eax
test edx, edx
je 0x510967
test esi, esi
je 0x51095e
cmp dword [esi + 0x208], 0
je 0x510938
mov ecx, esi
call fcn.004b4710
jmp 0x510967
cmp edx, dword [esi + 0x114]
jb 0x51095e
cmp edx, dword [esi + 0x118]
jae 0x51095e
mov eax, dword [esi + 0x110]
mov dword [edx], eax
dec dword [esi + 0xfc]
mov dword [esi + 0x110], edx
jmp 0x510967
push edx
call fcn.004b4670
add esp, 4
mov edx, dword [esp + 0x50]
mov ecx, esi
call fcn.004f2960
mov edx, edi
mov ecx, esi
call fcn.004e5ba0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x5109e4
test dword [edi + 4], 0x4000
jne 0x5109d2
mov edx, dword [edi + 0xc]
mov ecx, esi
call fcn.004e4e10
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.004e4e10
test dword [edi + 4], 0x10000
je 0x5109b3
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.004b4750
test dword [edi + 4], 0x800
mov ecx, esi
mov edx, dword [edi + 0x14]
je 0x5109cd
push 1
call fcn.00503c20
add esp, 4
jmp 0x5109d2
call fcn.004e5ba0
test dword [edi + 4], 0x8000
jne 0x5109e4
mov edx, edi
mov ecx, esi
call fcn.004b4750
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret