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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0xe0], eax
xor eax, eax
mov dword [esp + 0x50], edx
push ebx
mov ebx, ecx
mov dword [esp + 0x9c], 0
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0xb8], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], eax
movlpd qword [esp + 0xc0], xmm0
mov dword [esp + 0x48], edx
cmp dword [ebx + 0x24], eax
jne 0x519548
cmp byte [edx + 0x45], al
jne 0x519548
mov edx, dword [esp + 0x5c]
call fcn.004fbeb0
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x519544
mov ecx, dword [ebx]
mov edx, dword [esi + 0x48]
call fcn.0050b7a0
mov dword [esp + 0x38], eax
mov edx, esi
lea eax, [esp + 0xa0]
mov ecx, ebx
push eax
push edi
push 0x6e
call fcn.00517220
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov edx, esi
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.004f7d50
test eax, eax
jne 0x519544
push dword [esp + 0xa0]
mov edx, esi
mov ecx, ebx
call fcn.004fbf50
add esp, 4
test eax, eax
jne 0x519544
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x84], ecx
mov dword [eax + 0x38], ecx
mov edx, dword [ebx + 0x28]
lea eax, [ecx + 1]
inc edx
mov dword [esp + 0x94], eax
mov dword [ebx + 0x28], edx
test byte [esi + 0x24], 0x20
jne 0x517e65
mov dword [esp + 0x28], 0
jmp 0x517e70
mov ecx, esi
call fcn.004f6040
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 8]
xor edi, edi
mov dword [esp + 0x98], edi
test ecx, ecx
je 0x517eb9
mov eax, dword [ecx + 0x38]
mov esi, edx
and al, 3
cmp al, 2
jne 0x517ea0
cmp dword [esp + 0x28], 0
je 0x517ea0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov dword [eax + 0x38], edx
mov esi, dword [ebx + 0x28]
lea edx, [esi + 1]
inc edi
mov dword [ebx + 0x28], edx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x517e80
mov esi, dword [esp + 0xc]
mov dword [esp + 0x98], edi
movsx eax, word [esi + 0x2a]
mov ecx, dword [esp + 0x48]
add eax, edi
push 0
lea eax, [eax*4 + 2]
add eax, edi
push eax
call fcn.004b8080
mov ecx, eax
add esp, 8
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x519544
movsx eax, word [esi + 0x2a]
lea eax, [ecx + eax*4]
lea ecx, [eax + edi*4]
mov dword [esp + 0x90], eax
lea eax, [edi + 1]
mov dword [esp + 0x24], ecx
push eax
push 1
push ecx
call fcn.005d05b0
mov eax, dword [esp + 0x30]
add esp, 0xc
xor ecx, ecx
mov byte [eax + edi + 1], 0
xor eax, eax
cmp ax, word [esi + 0x2a]
jge 0x517f34
mov ebx, dword [esp + 0x2c]
mov dword [ebx + ecx*4], 0xffffffff
inc ecx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x517f20
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
xorps xmm0, xmm0
mov edi, dword [esp + 0x5c]
xor al, al
xor cl, cl
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xdc], xmm0
cmp dword [edx], 0
movlpd qword [esp + 0xe4], xmm0
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], edi
mov dword [esp + 0x70], eax
mov byte [esp + 0x1b], cl
mov dword [esp + 0x34], 0
jle 0x518182
xor edi, edi
mov dword [esp + 0x1c], edi
nop dword [eax + eax]
mov edx, dword [edx + 4]
lea ecx, [esp + 0xcc]
mov edx, dword [edi + edx]
call fcn.004e9a00
test eax, eax
jne 0x5194f5
movsx eax, word [esi + 0x2a]
xor ebx, ebx
test eax, eax
jle 0x518090
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
mov dword [esp + 0x64], ecx
mov eax, dword [eax + 4]
add eax, edi
mov dword [esp + 0xa8], eax
mov edi, dword [eax + 4]
mov eax, ecx
mov dword [esp + 0x68], edi
mov esi, dword [eax]
movzx eax, byte [edi]
mov dl, byte [esi]
movzx ecx, byte [eax + 0x62ab18]
movzx eax, dl
movzx eax, byte [eax + 0x62ab18]
sub eax, ecx
jne 0x518021
sub edi, esi
test dl, dl
je 0x518019
movzx eax, byte [esi + edi + 1]
inc esi
movzx ecx, byte [eax + 0x62ab18]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x62ab18]
sub eax, ecx
je 0x517ff6
jmp 0x51801d
test eax, eax
je 0x51803b
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0xc]
inc ebx
mov eax, dword [esp + 0x64]
add eax, 0x10
mov dword [esp + 0x64], eax
movsx ecx, word [esi + 0x2a]
cmp ebx, ecx
jl 0x517fd8
jmp 0x51808c
mov esi, dword [esp + 0xc]
movsx eax, word [esi + 0x28]
cmp ebx, eax
jne 0x51805b
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x1b], 1
mov eax, dword [eax]
mov dword [esp + 0x54], eax
jmp 0x518081
cmp dword [esp + 0x28], 0
je 0x518081
mov ecx, dword [esi + 4]
mov eax, ebx
add eax, eax
test byte [ecx + eax*8 + 0xf], 1
mov ecx, 1
mov eax, dword [esp + 0x70]
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [ecx + ebx*4], eax
mov edi, dword [esp + 0x1c]
movsx eax, word [esi + 0x2a]
cmp ebx, eax
jl 0x5180fc
cmp dword [esp + 0x28], 0
jne 0x518199
mov eax, dword [esp + 0x30]
mov edx, str._ROWID_
mov eax, dword [eax + 4]
add edi, eax
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.004bace0
test eax, eax
je 0x5180e3
mov edx, str.ROWID
mov ecx, esi
call fcn.004bace0
test eax, eax
je 0x5180e3
mov edx, 0x634860
mov ecx, esi
call fcn.004bace0
test eax, eax
jne 0x518199
mov eax, dword [edi]
or ebx, 0xffffffff
mov esi, dword [esp + 0xc]
mov edx, str.ROWID
mov byte [esp + 0x1b], 1
mov dword [esp + 0x54], eax
jmp 0x518111
test ebx, ebx
jns 0x518107
mov edx, str.ROWID
jmp 0x518111
mov eax, dword [esi + 4]
mov ecx, ebx
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
push edx
push dword [esi]
mov edx, 0x17
call fcn.004f4990
add esp, 0xc
cmp eax, 1
je 0x5194f5
cmp eax, 2
jne 0x51814e
mov eax, dword [esp + 0x2c]
mov dword [eax + ebx*4], 0xffffffff
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
inc esi
mov edi, dword [esp + 0x1c]
add edi, 0x18
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edi
cmp esi, dword [edx]
mov esi, dword [esp + 0xc]
jl 0x517f90
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov cl, byte [esp + 0x1b]
mov edi, dword [esp + 0x5c]
cmp dword [esi + 0x38], 0
lea edx, [ecx + eax]
mov byte [esp + 0x58], dl
je 0x5181c6
or eax, 0xffffffff
mov ecx, 0xffffffff
jmp 0x5181e0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
push dword [eax + ecx*8 + 4]
push str.no_such_column:__s
push ebx
call fcn.004bab30
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x5194f5
xorps xmm0, xmm0
movlpd qword [esp + 0xa8], xmm0
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
mov dword [edi + 0x48], eax
movzx eax, dl
mov edx, esi
push eax
push dword [esp + 0x30]
mov dword [edi + 0x4c], ecx
mov ecx, ebx
mov dword [esp + 0x70], eax
call fcn.00502740
mov esi, dword [esi + 8]
xor ecx, ecx
add esp, 8
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x51830a
cmp byte [esp + 0x58], 0
jne 0x5182b7
test eax, eax
jne 0x5182b7
cmp dword [esi + 0x24], eax
jne 0x5182b7
cmp esi, dword [esp + 0x28]
je 0x5182b7
movzx ebx, word [esi + 0x32]
xor edi, edi
xor edx, edx
test ebx, ebx
je 0x5182ac
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
test ax, ax
js 0x518275
mov ebx, dword [esp + 0x2c]
cwde
cmp dword [ebx + eax*4], edi
movzx ebx, word [esi + 0x32]
jge 0x518275
inc edx
add ecx, 2
cmp edx, ebx
jl 0x518248
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov byte [ecx + edx + 1], 0
jmp 0x5182cd
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebx + 0x2c]
inc edi
mov dword [ebx + 0x2c], edi
movzx eax, word [esi + 0x34]
add eax, edi
mov dword [ebx + 0x2c], eax
cmp edx, 5
je 0x51829c
cmp edx, 0xa
jne 0x5182a4
cmp byte [esi + 0x36], 5
jne 0x5182a4
mov dword [esp + 0x74], 1
mov ecx, dword [esp + 0x1c]
test edi, edi
jne 0x5182c9
mov edx, dword [esp + 0x24]
mov byte [ecx + edx + 1], 0
jmp 0x5182cd
mov edi, dword [ebx + 0x2c]
inc edi
mov dword [ebx + 0x2c], edi
movzx eax, word [esi + 0x34]
add eax, edi
mov dword [ebx + 0x2c], eax
jmp 0x5182a8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], edi
inc ecx
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x518213
cmp dword [esp + 0x74], 0
je 0x51830a
mov eax, dword [esp + 0x98]
inc eax
push eax
push 1
push edx
call fcn.005d05b0
add esp, 0xc
mov edi, dword [ebx + 8]
mov dword [esp + 0x64], edi
test edi, edi
jne 0x51832a
mov ecx, ebx
call fcn.0050ef70
mov edi, eax
mov dword [esp + 0x64], eax
test edi, edi
je 0x5194f5
cmp byte [ebx + 0x12], 0
jne 0x518337
or dword [edi + 0x90], 0x10
mov eax, dword [ebx + 0x7c]
mov esi, ebx
mov ecx, dword [esp + 0x38]
test eax, eax
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x60]
test edx, eax
jne 0x518369
bts edx, ecx
mov dword [esi + 0x60], edx
cmp ecx, 1
jne 0x518369
mov ecx, esi
call fcn.004fa970
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x5c]
or byte [esi + 0x14], 1
bts eax, ecx
mov dword [esi + 0x5c], eax
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x38], 0
jne 0x5183fa
mov eax, dword [ebx + 0x2c]
inc eax
cmp byte [esp + 0x70], 0
mov dword [esp + 0x6c], eax
lea edx, [eax + 1]
mov dword [esp + 0x4c], edx
mov dword [ebx + 0x2c], edx
mov dword [esp + 0x20], edx
jne 0x5183b2
cmp dword [esp + 0x40], 0
jne 0x5183b2
mov eax, dword [esp + 0x50]
mov ecx, edx
test eax, eax
je 0x5183c9
movsx ecx, word [esi + 0x2a]
lea eax, [edx + 1]
add ecx, edx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x2c], ecx
cmp byte [esp + 0x58], 0
jne 0x5183db
cmp dword [esp + 0x40], 0
jne 0x5183db
test eax, eax
je 0x5183e7
lea eax, [ecx + 1]
mov dword [esp + 0x4c], eax
mov ecx, eax
mov dword [ebx + 0x2c], eax
lea eax, [ecx + 1]
mov dword [esp + 0x88], eax
movsx eax, word [esi + 0x2a]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x518420
mov ecx, dword [ebx + 0x1bc]
mov eax, dword [esi]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xa8], ecx
mov dword [ebx + 0x1bc], eax
jmp 0x51843c
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xa8], eax
test edx, edx
je 0x518454
push dword [esp + 0x10]
mov edx, esi
mov ecx, ebx
push dword [esp + 0x48]
call fcn.004fbfe0
add esp, 8
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xcc]
call fcn.004e9a00
test eax, eax
jne 0x5194dd
cmp dword [esi + 0x38], eax
je 0x518499
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x5c]
push eax
push dword [esp + 0x48]
push dword [esp + 0x34]
push dword [esp + 0x60]
push dword [esp + 0x40]
push esi
call fcn.00519590
add esp, 0x18
jmp 0x5194dd
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x80
je 0x5184cb
cmp dword [ebx + 0x80], 0
jne 0x5184cb
inc dword [ebx + 0x2c]
mov edx, 0x4d
mov eax, dword [ebx + 0x2c]
mov ecx, edi
push eax
push 0
mov dword [esp + 0x80], eax
call fcn.004d5ed0
add esp, 8
test byte [esi + 0x24], 0x20
jne 0x518535
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
mov edx, dword [esp + 0x6c]
cmp dword [eax + 0x30], ecx
jg 0x5184fe
push dword [esp + 0x20]
mov ecx, edi
push edx
push 0
mov edx, 0x50
call fcn.004d5d40
add esp, 0xc
jmp 0x5185d8
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5185d8
mov eax, dword [esp + 0x28]
movzx edx, word [eax + 0x32]
mov eax, dword [ebx + 0x2c]
movsx esi, dx
mov dword [esp + 0xb4], edx
mov edx, 0x50
lea ecx, [eax + 1]
inc eax
add eax, esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x28]
push ecx
mov dword [esp + 0x64], eax
mov ecx, edi
inc eax
push 0
mov dword [ebx + 0x28], eax
call fcn.004d5ed0
push esi
push dword [esp + 0x6c]
mov edx, 0x6c
mov ecx, edi
call fcn.004d5ed0
mov edx, dword [esp + 0x38]
add esp, 0x10
mov esi, dword [ebx + 8]
mov ecx, ebx
mov dword [esp + 0xb8], eax
call fcn.004fb160
mov edx, eax
test edx, edx
je 0x5185d4
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x5185bf
push edx
mov edx, 0xfffffffb
call fcn.004d67f0
add esp, 4
jmp 0x5185d4
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xfb
mov dword [eax + ecx*4 - 4], edx
mov esi, dword [esp + 0xc]
cmp byte [ebx + 0x12], 0
mov eax, 0x1004
jne 0x518605
cmp dword [esp + 0x40], 0
jne 0x518605
cmp dword [esp + 0x50], 0
jne 0x518605
cmp byte [esp + 0x58], 0
jne 0x518605
cmp dword [esp + 0x74], 0
mov ecx, 0x100c
cmove eax, ecx
push dword [esp + 0x94]
mov edx, dword [esp + 0x60]
mov ecx, ebx
push eax
push 0
push 0
push dword [esp + 0x54]
call fcn.00526220
mov ecx, eax
add esp, 0x14
mov dword [esp + 0xc0], ecx
test ecx, ecx
je 0x5194dd
mov eax, dword [ecx + 0x14]
movzx ebx, byte [ecx + 0x2d]
mov dword [esp + 0xbc], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
cmp ebx, 2
jne 0x518679
test eax, eax
js 0x518679
cmp eax, ecx
je 0x518679
mov ecx, dword [esp + 0x24]
xor edx, edx
sub eax, dword [esp + 0x84]
cmp byte [eax + ecx], dl
mov ecx, dword [esp + 0x10]
cmovne ebx, edx
mov dword [esp + 0x38], ebx
test byte [esi + 0x24], 0x20
jne 0x5186b5
mov esi, dword [esp + 0x20]
mov edx, 0x7b
push esi
push ecx
mov ecx, edi
call fcn.004d5ed0
add esp, 8
test ebx, ebx
jne 0x51874f
push esi
push dword [esp + 0x70]
mov edx, 0x8f
mov ecx, edi
call fcn.004d5ed0
add esp, 8
jmp 0x5187a2
mov eax, dword [esp + 0xb4]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x5186fe
nop word [eax + eax]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0xc]
add eax, esi
push eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push ecx
mov ecx, edi
call fcn.004eed00
mov ecx, dword [esp + 0x1c]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x5186d0
cmp dword [esp + 0x38], 0
je 0x518756
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
jne 0x518739
mov eax, dword [esp + 0xb8]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004d67f0
add esp, 4
mov word [esi], 0xa2
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
cmp ebx, 2
je 0x5187ae
jmp 0x5187a2
mov edx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x50]
call fcn.00503550
mov esi, dword [esp + 0x88]
add esp, 4
mov edx, 0x64
mov ecx, edi
push eax
push dword [esp + 0x44]
push ebx
push esi
call fcn.004d6110
add esp, 0x14
mov edx, 0x7e
mov ecx, edi
push ebx
push esi
push dword [esp + 0x44]
push dword [esp + 0x6c]
call fcn.004d6210
mov ebx, dword [esp + 0x48]
add esp, 0x10
mov ecx, dword [esp + 0xc0]
call fcn.00526d00
mov esi, dword [edi + 0xc]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x34], ecx
lea eax, [ecx + 1]
mov dword [esi + 0x48], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x5187e3
mov edx, dword [esi + 0x4c]
lea eax, [ecx*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004b81f0
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x5187f1
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esp + 0x7c]
not ecx
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x518908
xor esi, esi
test ebx, ebx
je 0x518837
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x24]
test eax, eax
js 0x518825
sub eax, edx
mov byte [eax + ecx], 0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
js 0x51883b
mov eax, ebx
sub eax, edx
mov byte [eax + ecx], 0
jmp 0x51883b
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x38], 2
jne 0x518864
mov ecx, dword [esp + 0x98]
xor eax, eax
test ebx, ebx
setns al
sub ecx, eax
test ecx, ecx
jle 0x518864
mov edx, 0x14
mov ecx, edi
call fcn.004d5df0
mov esi, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x2c]
push dword [esp + 0x90]
push 0
push 0x6a
call fcn.00506340
add esp, 0x18
test esi, esi
je 0x5188b4
mov eax, dword [edi]
mov edx, dword [edi + 0x88]
cmp byte [eax + 0x45], 0
je 0x5188a0
mov eax, 0x665728
jmp 0x5188b1
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x518977
test eax, eax
jne 0x5188f9
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xbc], eax
je 0x5188f9
cmp ebx, eax
je 0x5188f9
push dword [esp + 0x8c]
mov edx, 0x1e
push dword [esp + 0x40]
push ecx
push eax
mov ecx, edi
call fcn.004d6210
add esp, 0x10
cmp esi, 1
jne 0x51890e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x518953
mov ebx, dword [esp + 0x1c]
jmp 0x5188bc
mov esi, dword [edi + 0xc]
mov ebx, dword [esi + 0x48]
lea eax, [ebx + 1]
mov dword [esi + 0x48], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x51893b
mov edx, dword [esi + 0x4c]
lea eax, [ebx*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004b81f0
add esp, 8
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x518949
mov dword [eax + ebx*4], 0xffffffff
mov eax, dword [esp + 0x34]
not ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x28], 0
mov edx, 0x22
push eax
mov eax, dword [esp + 0x24]
mov ecx, edi
cmovne eax, dword [esp + 0x40]
push eax
call fcn.004d5ed0
add esp, 8
jmp 0x518a41
cmp dword [esp + 0x28], 0
je 0x518a0d
mov esi, dword [edi + 0xc]
mov ebx, dword [esi + 0x48]
lea eax, [ebx + 1]
mov dword [esi + 0x48], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x5189af
mov edx, dword [esi + 0x4c]
lea eax, [ebx*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004b81f0
add esp, 8
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x5189bd
mov dword [eax + ebx*4], 0xffffffff
mov eax, dword [esp + 0x34]
not ebx
push eax
push dword [esp + 0x64]
mov edx, 0x3a
mov dword [esp + 0x24], ebx
mov ecx, edi
call fcn.004d5ed0
mov esi, dword [esp + 0x44]
mov edx, 0x7a
push esi
push dword [esp + 0x6c]
mov ecx, edi
call fcn.004d5ed0
push 0
push esi
push ebx
push dword [esp + 0x2c]
mov edx, 0x1e
mov dword [esp + 0xc4], eax
mov ecx, edi
call fcn.004d6210
add esp, 0x20
jmp 0x518a41
mov ebx, dword [esp + 0x20]
mov edx, 0x3f
push ebx
push ecx
push dword [esp + 0x74]
mov ecx, edi
call fcn.004d5d80
add esp, 0xc
mov esi, eax
mov edx, 0x21
mov dword [esp + 0x1c], esi
mov ecx, edi
push ebx
push esi
push dword [esp + 0x18]
call fcn.004d5d80
add esp, 0xc
cmp byte [esp + 0x1b], 0
je 0x518aad
mov eax, dword [esp + 0x54]
test eax, eax
je 0x518a6b
cmp byte [eax], 0x9d
jne 0x518a6b
mov ebx, dword [esp + 0x14]
mov edx, 0x55
mov esi, dword [esp + 0x4c]
push esi
push dword [eax + 0x1c]
mov ecx, dword [ebx + 8]
jmp 0x518a92
mov esi, dword [esp + 0x4c]
mov edx, eax
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push esi
call fcn.004ef000
add esp, 4
cmp eax, esi
je 0x518a9a
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x518a9a
push esi
push eax
mov edx, 0x56
call fcn.004d5ed0
add esp, 8
push dword [esp + 0x4c]
mov edx, 0x11
mov ecx, edi
call fcn.004d5e60
add esp, 4
cmp byte [esp + 0x70], 0
jne 0x518b6b
cmp dword [esp + 0x50], 0
jne 0x518b76
mov edx, dword [esp + 0x40]
test edx, edx
je 0x518c68
mov ebx, dword [esp + 0xc]
xor eax, eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [esp + 0x40]
call fcn.00517b70
mov edx, dword [esp + 0x68]
add esp, 0x14
or edx, eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x54], edx
cmp ax, word [ebx + 0x2a]
jge 0x518bf7
xor ebx, ebx
cmp edx, 0xffffffff
je 0x518bc2
cmp esi, 0x20
jge 0x518b2f
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
jne 0x518bc2
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test byte [eax + ebx + 0xf], 1
jne 0x518bc2
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x9c]
mov ecx, dword [edi + 0x88]
add edx, esi
cmp dword [eax + 0x30], ecx
jg 0x518b8a
push 0
push edx
push 0
mov edx, 0x50
mov ecx, edi
call fcn.004d5d40
jmp 0x518bdc
cmp dword [esp + 0x50], 0
je 0x518acf
mov ebx, dword [esp + 0xc]
mov edx, ebx
mov ecx, dword [esp + 0x14]
call fcn.00502650
jmp 0x518ad5
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x64]
mov dword [eax + ecx*4], 0x50
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
jmp 0x518bdf
mov eax, dword [esp + 0x9c]
mov ecx, edi
mov edx, dword [esp + 0xc]
add eax, esi
push eax
push esi
push dword [esp + 0x18]
call fcn.004eed00
add esp, 0xc
mov eax, dword [esp + 0xc]
inc esi
mov edx, dword [esp + 0x54]
add ebx, 0x10
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x518b10
cmp byte [esp + 0x1b], 0
jne 0x518c64
cmp dword [esp + 0x28], 0
jne 0x518c64
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x518c2e
push 0
push dword [esp + 0x50]
mov edx, 0x55
mov ecx, edi
push dword [esp + 0x28]
call fcn.004d5d40
add esp, 0xc
jmp 0x518c64
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x4c]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x40]
push dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x10]
push 1
push 1
push dword [esp + 0x40]
call fcn.00517b70
mov ecx, dword [esp + 0x20]
mov edx, eax
xor eax, eax
mov dword [esp + 0x38], edx
add esp, 0x14
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jge 0x518e0a
mov esi, dword [esp + 0x88]
movsx eax, word [ecx + 0x28]
cmp ebx, eax
jne 0x518cd7
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x518d84
push 0
push esi
push 0
mov edx, 0x50
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x518df0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x518d36
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx*8]
test edx, edx
je 0x518d06
cmp byte [edx], 0x9d
jne 0x518d06
push esi
push dword [edx + 0x1c]
mov edx, 0x55
jmp 0x518de1
mov ecx, dword [esp + 0x14]
push esi
call fcn.004ef000
add esp, 4
cmp eax, esi
je 0x518df0
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x518df0
push esi
push eax
mov edx, 0x56
jmp 0x518de8
test dword [esp + 0xa0], 1
je 0x518dc0
cmp ebx, 0x1f
jg 0x518dc0
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x518dbc
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x518d84
push 0
push esi
push 0
mov edx, 0x50
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x518df0
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x64]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x518df4
mov ecx, dword [esp + 0xc]
push 0
push esi
push dword [esp + 0x18]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push ebx
call fcn.004eeda0
add esp, 0x10
cmp eax, esi
je 0x518df0
push esi
push eax
mov edx, 0x56
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
call fcn.004d5ed0
add esp, 8
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
inc ebx
inc esi
movsx eax, word [ecx + 0x2a]
cmp ebx, eax
jl 0x518ca4
mov esi, dword [esp + 0x14]
test byte [esp + 0xa0], 1
je 0x518f27
push dword [esp + 0x88]
mov edx, ecx
mov ecx, edi
call fcn.00503640
mov ebx, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0x40]
mov ecx, esi
push ebx
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x18]
push 1
push dword [esp + 0x44]
push 0x6e
call fcn.00517ae0
mov eax, dword [edi + 0xc]
add esp, 0x1c
cmp dword [esp + 0x28], 0
mov edx, dword [edi + 0x88]
mov eax, dword [eax + 0x30]
je 0x518fe5
cmp eax, edx
jg 0x518e88
push dword [esp + 0x3c]
mov edx, 0x1e
mov ecx, edi
push ebx
push dword [esp + 0x18]
call fcn.004d5d40
add esp, 0xc
mov edx, eax
jmp 0x518eba
mov esi, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x1e
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x518ed8
mov eax, dword [edi + 0x58]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x8c]
mov byte [eax + ecx*4 + 1], 0xf5
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2a]
jge 0x518f2b
mov ebx, dword [esp + 0x2c]
nop
cmp dword [ebx + esi*4], 0
jge 0x518f1a
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x518f1a
mov eax, dword [esp + 0x88]
add eax, esi
push eax
push esi
push edx
mov edx, ecx
mov ecx, edi
call fcn.004eed00
mov ecx, dword [esp + 0x18]
add esp, 0xc
movsx eax, word [ecx + 0x2a]
inc esi
mov edx, dword [esp + 0x10]
cmp esi, eax
jl 0x518ef0
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x7c], 0
jne 0x51923d
push dword [esp + 0x2c]
lea eax, [esp + 0x78]
mov edx, ecx
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [esp + 0x24]
xor esi, esi
push dword [esp + 0x68]
mov ecx, ebx
push dword [esp + 0x34]
push dword [esp + 0x64]
push dword [esp + 0xb0]
push dword [esp + 0x30]
push dword [esp + 0xb4]
call fcn.00504bb0
add esp, 0x28
cmp dword [esp + 0x50], esi
je 0x518f94
push dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push dword [esp + 0x30]
push esi
push dword [esp + 0x2c]
call fcn.00501fb0
add esp, 0x10
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x518fa6
cmp byte [esp + 0x58], bl
je 0x5190ee
cmp dword [esp + 0x28], 0
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x88]
mov eax, dword [eax + 0x30]
je 0x519097
cmp eax, esi
jg 0x51903d
push dword [esp + 0x3c]
mov edx, 0x1e
mov ecx, edi
push 0
push dword [esp + 0x18]
call fcn.004d5d40
add esp, 0xc
mov esi, eax
jmp 0x519073
cmp eax, edx
jg 0x519006
push dword [esp + 0x20]
mov edx, 0x21
mov ecx, edi
push ebx
push dword [esp + 0x18]
call fcn.004d5d40
add esp, 0xc
jmp 0x518ed8
mov esi, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x21
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x518edc
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x1e
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x5190ee
mov eax, dword [edi + 0x58]
lea ecx, [esi + esi*4]
mov edx, dword [esp + 0x8c]
mov byte [eax + ecx*4 + 1], 0xf5
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x5190ee
cmp eax, esi
jg 0x5190b8
push dword [esp + 0x20]
mov edx, 0x21
mov ecx, edi
push 0
push dword [esp + 0x18]
call fcn.004d5d40
add esp, 0xc
mov esi, eax
jmp 0x5190ee
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x21
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push dword [esp + 0x94]
push dword [esp + 0x9c]
push dword [esp + 0x1c]
call fcn.004fcf00
add esp, 0x10
cmp dword [esp + 0x50], 0
jne 0x519121
mov al, byte [esp + 0x58]
test al, al
je 0x519182
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x519148
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x76
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x51917e
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x76
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 + 0x58]
test ebx, ebx
jne 0x51918a
test al, al
je 0x5191b3
mov eax, dword [edi]
mov edx, dword [edi + 0x88]
cmp byte [eax + 0x45], 0
je 0x51919f
mov eax, 0x665728
jmp 0x5191b0
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp dword [esp + 0x50], 0
mov esi, dword [esp + 0x14]
je 0x5191da
push dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x54]
push 0
call fcn.00501fb0
add esp, 0x10
mov ebx, dword [esp + 0x38]
xor eax, eax
mov edx, dword [esp + 0xc]
cmp ebx, 2
push 0
sete al
mov ecx, esi
push 0
lea eax, [eax*2 + 4]
push eax
push dword [esp + 0x9c]
push dword [esp + 0x5c]
push dword [esp + 0xa8]
push dword [esp + 0x28]
call fcn.00506030
add esp, 0x1c
cmp dword [esp + 0x50], 0
je 0x519245
push dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x3c]
call fcn.005033d0
add esp, 0x10
jmp 0x519245
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x80
je 0x5192b8
cmp dword [esi + 0x80], 0
jne 0x5192b8
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x519282
push 0
push 1
push dword [esp + 0x80]
mov edx, 0x5c
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x5192b8
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x5c
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 esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x18]
push 2
push dword [esp + 0x44]
push 0x6e
call fcn.00517ae0
add esp, 0x1c
cmp ebx, 1
je 0x5193eb
mov eax, dword [edi + 0xc]
cmp ebx, 2
jne 0x51931a
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x519309
lea eax, [esi*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
mov ecx, dword [esp + 0xc0]
call fcn.00526d00
jmp 0x5193eb
cmp dword [esp + 0x28], 0
je 0x519398
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x519340
lea eax, [esi*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x51936d
mov edx, dword [esp + 0xa4]
mov ecx, edi
push 0
push edx
push dword [esp + 0x68]
mov edx, 7
call fcn.004d5d40
add esp, 0xc
jmp 0x5193eb
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xa4]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 8], edx
jmp 0x5193db
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x5193b9
push 0
push esi
push 0
mov edx, 0xd
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x5193eb
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x51940a
mov eax, dword [esp + 0x34]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x12], 0
jne 0x51942e
cmp dword [eax + 0x80], 0
jne 0x51942e
cmp dword [eax + 0x78], 0
je 0x51942e
mov ecx, eax
call fcn.005037c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
test byte [ecx + 0x18], 0x80
je 0x5194dd
cmp dword [eax + 0x80], 0
jne 0x5194dd
cmp byte [eax + 0x12], 0
jne 0x5194dd
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x51947d
push 0
push 1
push dword [esp + 0x80]
mov edx, 0x58
mov ecx, edi
call fcn.004d5d40
add esp, 0xc
jmp 0x5194b3
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x58
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, edi
call fcn.004d7b40
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x5194dd
mov ecx, dword [edi + 0x64]
mov edx, str.rows_updated
push 0
push 1
push 0xffffffffffffffff
call fcn.004d51a0
add esp, 0xc
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x5194f5
mov ecx, dword [esp + 0xa8]
mov dword [eax + 0x1bc], ecx
mov edx, dword [esp + 0x48]
cmp dword [edx + 0x1c8], 0
je 0x519511
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
call fcn.004b7d60
jmp 0x519544
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edx + 0x120]
jb 0x51953b
cmp ecx, dword [edx + 0x124]
jae 0x51953b
mov eax, dword [edx + 0x11c]
mov dword [ecx], eax
dec dword [edx + 0x108]
mov dword [edx + 0x11c], ecx
jmp 0x519544
push ecx
call fcn.004b7cf0
add esp, 4
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
call fcn.004fa380
mov eax, dword [esp + 0x30]
test eax, eax
je 0x519568
mov ecx, dword [esp + 0x48]
mov edx, eax
call fcn.004ebf80
test esi, esi
je 0x519577
mov ecx, dword [esp + 0x48]
mov edx, esi
call fcn.004eaed0
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret