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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x78], eax
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x94], 0
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0x50], eax
jne 0x50985a
cmp byte [eax + 0x51], 0
jne 0x50985a
push ecx
push esi
call fcn.00506870
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x509857
push dword [ebx + 0x48]
push dword [esi]
call fcn.00503330
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 0x7f
push ebx
push esi
call fcn.005076d0
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
call fcn.00515cd0
add esp, 0x24
test eax, eax
jne 0x509857
push dword [ebp - 0xa4]
push ebx
push esi
call fcn.004f9470
add esp, 0xc
test eax, eax
jne 0x509857
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x88], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
test byte [ebx + 0x24], 0x80
mov dword [ebp - 0x70], eax
jne 0x507b8c
mov dword [ebp - 0x2c], 0
jmp 0x507b9b
push ebx
call fcn.00500cb0
mov dword [ebp - 0x2c], eax
add esp, 4
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 0x84], edi
test ecx, ecx
je 0x507bd4
mov ebx, dword [ebp - 0x10]
mov edx, eax
nop
cmp dword [ebp - 0x2c], ecx
mov eax, edx
cmovne eax, ebx
inc edx
mov dword [esi + 0x28], edx
inc edi
mov ecx, dword [ecx + 0x14]
mov ebx, eax
test ecx, ecx
jne 0x507bb0
mov dword [ebp - 0x10], ebx
mov edx, eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x84], edi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x507bf0
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x10], edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [eax + 0x34], edx
movsx eax, word [ebx + 0x2a]
add eax, edi
lea eax, [eax*4 + 6]
add eax, edi
push eax
push dword [ebp - 0x50]
call fcn.004eb400
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x509857
movsx eax, word [ebx + 0x2a]
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], ecx
lea ecx, [ecx + eax*4]
inc eax
push eax
add ecx, 4
push 1
push ecx
mov dword [ebp - 0x54], ecx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov byte [ecx + eax + 1], 0
xor eax, eax
xor ecx, ecx
cmp ax, word [ebx + 0x2a]
jge 0x507c70
nop
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x507c60
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 8]
movlpd qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xf8], 0x200
mov dword [ebp - 4], eax
test eax, eax
jne 0x507ce0
cmp dword [esi + 0x74], eax
jne 0x507ccc
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x507ccc
mov byte [esi + 0x17], 1
push esi
call fcn.0050ac10
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x507fb4
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
xor al, al
mov byte [ebp - 0x19], 0
mov byte [ebp - 9], al
mov dword [ebp - 0x4c], ebx
cmp dword [ecx], ebx
jle 0x507eba
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
nop
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.00501ce0
add esp, 8
test eax, eax
jne 0x507fb1
mov edx, dword [ebp - 8]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x507da2
mov eax, dword [edx + 4]
mov ebx, eax
mov dword [ebp - 0x74], eax
nop
mov edx, dword [ebx]
mov esi, dword [esi + 4]
mov dword [ebp - 0x7c], edx
sub esi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x507d78
test ecx, ecx
jne 0x507d8a
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x507e0e
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x4c]
mov byte [ebp - 9], 1
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*4], ebx
jmp 0x507da2
movzx eax, byte [eax + 0x5854f8]
movzx ecx, byte [ecx + 0x5854f8]
sub ecx, eax
jne 0x507d8d
inc edx
jmp 0x507d40
mov edx, dword [ebp - 8]
inc edi
mov esi, dword [ebp - 0x20]
add ebx, 0x14
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x507d30
mov ebx, dword [ebp - 0x4c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x507e55
cmp dword [ebp - 0x2c], 0
jne 0x507fd3
mov esi, dword [esi + 4]
push str._ROWID_
push esi
call fcn.00507100
add esp, 8
test eax, eax
je 0x507df5
push str.ROWID
push esi
call fcn.00507100
add esp, 8
test eax, eax
je 0x507df5
push 0x58bd48
push esi
call fcn.00507100
add esp, 8
test eax, eax
jne 0x507fd3
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
mov byte [ebp - 9], 1
mov edx, str.ROWID
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
jmp 0x507e69
cmp dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x74]
je 0x507e36
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 1
je 0x507e36
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x19], 1
mov dword [eax + edi*4], ebx
jmp 0x507da2
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 0x60
jne 0x507f9e
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov dword [eax + edi*4], ebx
jmp 0x507da2
test edi, edi
jns 0x507e60
mov edx, str.ROWID
jmp 0x507e69
mov eax, dword [edx + 4]
lea ecx, [edi + edi*4]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov eax, dword [ebp - 8]
push edx
push dword [eax]
push 0x17
push dword [ebp + 8]
call fcn.004e40f0
add esp, 0x14
cmp eax, 1
je 0x507fb1
cmp eax, 2
jne 0x507ea2
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*4], 0xffffffff
mov ecx, dword [ebp + 0x10]
inc ebx
add esi, 0x14
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], esi
cmp ebx, dword [ecx]
jl 0x507d00
mov al, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov bl, byte [ebp - 0x19]
add bl, al
mov dword [ebp - 0x7c], 0xfffd
mov byte [ebp - 0x5c], bl
test byte [edx + 0x24], 0x60
je 0x507f90
movzx eax, word [edx + 0x2a]
nop word [eax + eax]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp cx, ax
jge 0x507f8d
xor edi, edi
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + esi*4], 0
jge 0x507f70
mov eax, dword [edx + 4]
test byte [eax + edi + 0x10], 0x60
je 0x507f70
mov eax, dword [eax + edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0xbc], 0
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xbc], ecx
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xd0], 0x4c4820
test eax, eax
je 0x507f4e
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00526770
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 9], 0
mov ax, word [ebp - 0xc0]
jne 0x507f5f
and ax, word [ebp - 0x7c]
test ax, ax
je 0x507f70
mov dword [ecx + esi*4], 0x1869f
mov ebx, 1
movzx eax, word [edx + 0x2a]
inc esi
mov ecx, eax
add edi, 0x14
cwde
cmp esi, eax
jl 0x507ef1
mov eax, ecx
test ebx, ebx
jne 0x507ee0
mov bl, byte [ebp - 0x5c]
cmp dword [edx + 0x38], 0
je 0x507ff4
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x508002
push dword [ebp - 0x7c]
push str.cannot_UPDATE_generated_column___s_
push dword [ebp + 8]
call fcn.004ed090
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x1f8], 0
je 0x5097c4
push edi
push eax
call fcn.004d4fc0
add esp, 8
jmp 0x509857
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + ebx*4]
mov ebx, dword [ebp + 8]
push dword [ecx + eax*4 + 8]
push str.no_such_column:__s
push ebx
call fcn.004ed090
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x507fb1
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
movzx eax, bl
push eax
push dword [ebp - 0x18]
mov dword [esi + 0x44], ecx
push edx
push dword [ebp + 8]
mov dword [ebp - 0xa8], eax
call fcn.004f3d40
mov ebx, eax
add esp, 0x10
cmp dword [ebp + 0x18], 5
mov ecx, 1
mov eax, dword [ebp - 0x58]
cmove eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x58], eax
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], edi
mov esi, dword [eax + 8]
test esi, esi
je 0x50819d
nop
cmp byte [ebp - 0x5c], 0
jne 0x508210
cmp ebx, 1
jg 0x508210
cmp esi, dword [ebp - 0x2c]
je 0x508210
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5080d0
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd4], xmm0
push eax
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xd0], 0x4c4820
mov dword [ebp - 0xbc], ecx
call fcn.00526770
mov ax, word [ebp - 0xc0]
add esp, 8
cmp byte [ebp - 9], 0
jne 0x5080c7
mov ecx, 0xfffd
and ax, cx
test ax, ax
jne 0x508210
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], ecx
cmp ax, word [esi + 0x32]
jae 0x50817a
xor ebx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x5080ff
cwde
mov eax, dword [ecx + eax*4]
not eax
shr eax, 0x1f
jmp 0x508163
mov eax, dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd8], 0
movq qword [ebp - 0xe0], xmm0
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0xec], 0x4c4820
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x508146
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00526770
add esp, 8
cmp byte [ebp - 9], 0
mov cx, word [ebp - 0xdc]
jne 0x50815b
mov eax, 0xfffd
and cx, ax
xor eax, eax
test cx, cx
setne al
test eax, eax
jne 0x5081e5
movzx eax, word [esi + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x5080e5
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x54]
mov byte [edi + eax + 1], 0
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x20]
mov dword [eax + edi*4], ecx
inc edi
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x64], edi
test esi, esi
jne 0x508050
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x60]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edi*4], eax
cmp dword [ebp - 0x58], 0
je 0x5081c7
mov eax, dword [ebp - 0x84]
inc eax
push eax
push 1
push dword [ebp - 0x54]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [esi + 0x12], 0
jne 0x5081d7
mov eax, dword [ebp - 4]
or dword [eax + 0x98], 0x20
cmp dword [ebp - 0x28], 0
jne 0x508230
test ebx, ebx
jne 0x508230
xor bl, bl
jmp 0x508232
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x64]
mov ecx, dword [edx + 0x2c]
inc ecx
mov dword [edx + 0x2c], ecx
movzx eax, word [esi + 0x34]
add eax, ecx
cmp dword [ebp + 0x18], 0xb
mov dword [edx + 0x2c], eax
jne 0x508223
cmp byte [esi + 0x36], 5
jne 0x508223
mov dword [ebp - 0x58], 1
jmp 0x508223
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x2c]
inc ecx
mov dword [edx + 0x2c], ecx
movzx eax, word [esi + 0x34]
add eax, ecx
mov dword [edx + 0x2c], eax
test ecx, ecx
jne 0x508185
jmp 0x50817d
mov bl, 1
mov eax, dword [esi + 0x74]
test eax, eax
mov ecx, dword [ebp - 0x34]
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x54]
test edx, eax
jne 0x508262
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x508262
push esi
call fcn.004fb890
mov ecx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [esi + 0x50]
or byte [esi + 0x14], bl
bts eax, ecx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov esi, dword [ebp - 8]
cmp dword [esi + 0x38], 0
jne 0x5082e3
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov edi, dword [ebx + 0x2c]
inc edi
mov dword [ebp - 0x30], eax
cmp byte [ebp - 0x19], 0
mov dword [ebp - 0x38], edi
mov dword [ebx + 0x2c], edi
mov dword [ebp - 0x14], edi
jne 0x5082a6
test edx, edx
jne 0x5082a6
mov eax, dword [ebp - 0x20]
mov ecx, edi
test eax, eax
je 0x5082bb
movsx ecx, word [esi + 0x2a]
lea eax, [edi + 1]
add ecx, edi
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x2c], ecx
cmp byte [ebp - 0x5c], 0
jne 0x5082c9
test edx, edx
jne 0x5082c9
test eax, eax
je 0x5082d4
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov ecx, eax
mov dword [ebx + 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
movsx eax, word [esi + 0x2a]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x508306
mov ecx, dword [ebx + 0xf0]
mov eax, dword [esi]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebx + 0xf0], eax
jmp 0x50831b
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], eax
mov edi, dword [ebp + 0x14]
test edx, edx
je 0x508336
push dword [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push esi
push ebx
call fcn.004faf80
add esp, 0x18
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00501ce0
add esp, 8
test eax, eax
jne 0x5097a5
cmp dword [esi + 0x38], eax
je 0x508376
push dword [ebp + 0x18]
push edi
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x90]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.005201c0
add esp, 0x20
jmp 0x5097a8
mov eax, dword [ebp - 0x50]
dec dword [ebx + 0x38]
mov edi, dword [ebx + 0x38]
mov dword [ebp - 0x34], edi
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
mov dword [ebp - 0x44], edi
or eax, ecx
je 0x508400
cmp dword [ebx + 0x78], 0
jne 0x508400
cmp byte [ebx + 0x12], 0
jne 0x508400
cmp dword [ebp + 0x24], 0
jne 0x508400
inc dword [ebx + 0x2c]
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xac], edx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x5083cc
push 0
push edx
push 0
push 0x45
push ebx
call fcn.004d2220
add esp, 0x14
jmp 0x508403
mov edi, dword [ebp - 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
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 0x508403
mov ebx, dword [ebp - 4]
test byte [esi + 0x24], 0x80
jne 0x5084d1
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x50842a
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0x48
push ebx
call fcn.004d2220
add esp, 0x14
jmp 0x50845b
mov edx, dword [ebp - 0x30]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x24], 0
je 0x5085ef
mov ecx, dword [ebp + 8]
push 0x10
push edi
push dword [ebp + 0x14]
mov esi, 1
mov dword [ebp - 0x74], 0
push ecx
mov dword [ebp - 0x3c], esi
call fcn.004f0650
mov edi, dword [ebp - 0x7c]
add esp, 0x10
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 8]
test byte [ecx + 0x24], 0x80
jne 0x508755
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x5086b1
push 0
push dword [ebp - 0x14]
push edx
push 0x7f
push ebx
call fcn.004d2220
mov edx, dword [ebp - 0x14]
add esp, 0x14
jmp 0x5086e2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 0x32]
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x78], edx
lea esi, [eax + 1]
inc eax
mov dword [ebp - 0x48], esi
movsx esi, dx
add eax, esi
cmp dword [ebp + 0x24], 0
mov dword [ebp - 0x24], eax
mov dword [ecx + 0x2c], eax
jne 0x508468
mov edi, ecx
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x40], eax
inc eax
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x6c]
lea edx, [eax - 1]
add edx, esi
cmp dword [ebx + 0x70], ecx
jg 0x50852a
push edx
push eax
push 0
push 0x48
push ebx
call fcn.004d2220
add esp, 0x14
jmp 0x50855b
mov edi, dword [ebp - 0x48]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0xa0], ecx
cmp dword [ebx + 0x70], ecx
jg 0x508582
push 0
push esi
push dword [ebp - 0x40]
push 0x64
push ebx
call fcn.004d2220
add esp, 0x14
mov dword [ebp - 0xa0], eax
jmp 0x5085b0
mov edx, dword [ebp - 0x40]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x64
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
push dword [ebp - 0x2c]
mov esi, dword [edi + 8]
push edi
call fcn.004f9850
mov edx, eax
add esp, 8
test edx, edx
je 0x5085f2
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x5085db
push edx
push 0xfffffffffffffff7
push eax
call fcn.004cf9c0
add esp, 0xc
jmp 0x5085f2
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
jmp 0x5085f2
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12], 0
mov eax, 0x1004
jne 0x50861b
cmp dword [ebp - 0x28], 0
jne 0x50861b
cmp dword [ebp - 0x20], 0
jne 0x50861b
cmp byte [ebp - 0x5c], 0
jne 0x50861b
cmp dword [ebp - 0x58], 0
mov ecx, 0x100c
cmove eax, ecx
push dword [ebp - 0x70]
push eax
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00517790
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x5097a5
movzx esi, byte [ecx + 0x2e]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ebp - 0x10]
and ecx, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0xb4], ecx
cmp esi, 1
je 0x50849f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
cmp esi, 2
jne 0x50849f
test edi, edi
js 0x50849f
cmp edi, edx
je 0x50849f
mov ecx, dword [ebp - 0x54]
mov eax, edi
sub eax, dword [ebp - 0x88]
cmp byte [eax + ecx], 0
mov eax, 0
cmovne esi, eax
mov dword [ebp - 0x3c], esi
jmp 0x50849f
mov esi, dword [ebp - 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
jne 0x50892d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
inc dword [eax + 0x2c]
mov eax, dword [eax + 0x2c]
mov dword [edi + ecx*4], eax
mov ecx, dword [ebx + 0x6c]
mov edi, dword [ebp - 0x4c]
cmp dword [ebx + 0x70], ecx
jg 0x50871f
push esi
push edx
push dword [ebp - 0x30]
push 0x93
push ebx
call fcn.004d2220
add esp, 0x14
jmp 0x50892d
mov edx, dword [ebp - 0x30]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50892d
mov eax, dword [ebp - 0x78]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x50878e
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
add eax, esi
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push edx
push ecx
push edi
call fcn.004ede30
mov ecx, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0x10]
add esp, 0x14
cmp esi, ebx
jl 0x508764
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x5087e5
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x5087d4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp byte [edx + 0x51], 0
jne 0x5087d4
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.004cf9c0
mov word [esi], 0xad
add esp, 0xc
mov dword [esi + 0x10], 0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x24], eax
jmp 0x50892a
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.004f7af0
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x508816
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x48]
push 0x5b
push ecx
call fcn.004d2220
add esp, 0x14
mov edx, eax
jmp 0x508849
mov edi, dword [ebp - 0x48]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
je 0x508866
cmp ebx, 0xfffffff4
je 0x5088b1
push esi
push ebx
push eax
call fcn.004cf9c0
add esp, 0xc
jmp 0x5088b1
test edx, edx
jns 0x50886e
mov edx, dword [ecx + 0x6c]
dec edx
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
lea eax, [eax + ecx*4]
test ebx, ebx
jns 0x5088a5
cmp byte [eax + 1], 0
jne 0x5088a5
cmp ebx, 0xfffffffd
jne 0x508891
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
jmp 0x5088b1
test esi, esi
je 0x5088b1
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
cmp ebx, 0xfffffff4
jne 0x5088b1
inc dword [esi + 0xc]
jmp 0x5088b1
push ebx
push esi
push eax
push edx
call fcn.00520e70
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp dword [eax + 0x70], edx
jg 0x5088da
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x83
push eax
call fcn.004d2220
mov esi, dword [ebp - 4]
add esp, 0x14
mov edx, eax
jmp 0x508910
mov esi, dword [ebp - 4]
lea eax, [edx + 1]
mov edi, dword [ebp - 0x40]
lea ecx, [edx + edx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x48]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x508927
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 4]
cmp dword [ebp + 0x24], 0
jne 0x508cb0
cmp esi, 2
je 0x508947
push dword [ebp - 0x74]
call fcn.0051a050
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x508a3d
mov ecx, dword [ebp - 0x3c]
xor esi, esi
test ecx, ecx
je 0x508982
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
test eax, eax
js 0x508972
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
test edi, edi
js 0x508982
mov eax, edi
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x5089ea
mov ecx, dword [ebp - 0x84]
xor eax, eax
test edi, edi
setns al
sub ecx, eax
test ecx, ecx
jle 0x5089ea
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x5089b7
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004d2220
add esp, 0x14
mov esi, eax
jmp 0x5089ea
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x88]
push 0
push 0x61
push eax
push dword [ebp + 8]
call fcn.004fb680
add esp, 0x20
test esi, esi
je 0x508a34
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x508a20
mov eax, 0x5bbdd4
jmp 0x508a31
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x508ae1
test eax, eax
jne 0x508a73
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
je 0x508a73
mov ebx, dword [ebp - 0x34]
cmp edi, eax
mov edi, dword [ebp - 4]
je 0x508a79
push dword [ebp - 0x94]
push dword [ebp - 0x24]
push ebx
push eax
push 0x1d
push edi
call fcn.0050a500
add esp, 0x18
jmp 0x508a79
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
cmp esi, 1
je 0x508a8a
mov eax, dword [ebp + 8]
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x14]
cmovne edx, dword [ebp - 0x24]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x508ab1
push 0
push ebx
push edx
push 0x32
push edi
call fcn.004d2220
add esp, 0x14
jmp 0x508cb3
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x508cb3
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 4]
je 0x508c15
mov esi, dword [ebp + 8]
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [esi + 0x38]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ecx
jg 0x508b18
mov edx, dword [ebp - 0x34]
push 0
push edx
push dword [ebp - 0x40]
push 0x25
push edi
call fcn.004d2220
add esp, 0x14
jmp 0x508b49
mov edx, dword [ebp - 0x40]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov dword [ebp - 0x98], ecx
cmp dword [edi + 0x70], ecx
jg 0x508b72
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x7e
push edi
call fcn.004d2220
add esp, 0x14
mov dword [ebp - 0x98], eax
jmp 0x508ba3
mov edx, dword [ebp - 0x40]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x508bc1
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
push 0x1d
push edi
call fcn.004d2220
add esp, 0x14
mov edx, eax
jmp 0x508bf1
mov esi, dword [ebp - 0x10]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x508cb6
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x508cb6
mov ebx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ebx
jg 0x508c3d
mov edx, dword [ebp - 0x34]
push esi
push edx
push dword [ebp - 0x30]
push 0x2a
push edi
call fcn.004d2220
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x44], ebx
jmp 0x508c6a
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], 0x2a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x508c84
push esi
push ebx
push dword [ebp - 0x10]
push 0x20
push edi
call fcn.004d2220
add esp, 0x14
jmp 0x508cb3
mov edx, dword [ebp - 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x20
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 0x508cb3
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp byte [ebp - 9], 0
je 0x508d96
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x90]
push ebx
push esi
call fcn.004eef80
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp edi, eax
je 0x508d47
mov esi, dword [esi + 8]
test esi, esi
je 0x508d44
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 0x6c]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
cmp dword [esi + 0x70], ecx
jg 0x508d0b
push 0
push eax
push edi
push edx
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x508d41
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x508d64
push 0
push 0
push eax
push 0xf
push edi
call fcn.004d2220
add esp, 0x14
jmp 0x508d96
mov edx, dword [ebp - 0x38]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xf
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 [ebp - 0x19], 0
jne 0x508de2
cmp dword [ebp - 0x20], 0
jne 0x508de8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x508f0b
xor ebx, ebx
push dword [ebp + 0x18]
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x28]
push esi
call fcn.005075a0
or ebx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
add esp, 0x1c
xor esi, esi
mov dword [ebp - 0x78], ebx
cmp cx, word [eax + 0x2a]
jge 0x508eae
xor edi, edi
jmp 0x508dfb
cmp dword [ebp - 0x20], 0
je 0x508dad
push dword [ebp - 8]
push esi
call fcn.004f3c60
add esp, 8
mov ebx, eax
jmp 0x508daf
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.005072c0
movsx edx, ax
add esp, 8
add edx, dword [ebp - 0x9c]
cmp ebx, 0xffffffff
je 0x508e85
cmp esi, 0x20
jge 0x508e25
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x508e85
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x10], 1
jne 0x508e85
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x508e4c
push 0
push edx
push 0
push 0x48
push eax
call fcn.004d2220
jmp 0x508e95
mov ebx, dword [ebp - 4]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x78]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x48
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 0x508e98
push edx
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ede30
add esp, 0x14
mov eax, dword [ebp - 8]
inc esi
add edi, 0x14
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x508df8
mov edi, dword [ebp - 4]
cmp byte [ebp - 9], 0
jne 0x508f08
cmp dword [ebp - 0x2c], 0
jne 0x508f08
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x508ed7
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x4d
push edi
call fcn.004d2220
add esp, 0x14
jmp 0x508f08
mov edx, dword [ebp - 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 0x28]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push dword [ebp - 8]
push 1
push 1
push ecx
push eax
push dword [ebp + 8]
call fcn.005075a0
mov ecx, dword [ebp - 0x6c]
mov edx, eax
mov eax, dword [ebp - 8]
xor edi, edi
add esp, 0x1c
mov dword [ebp - 0x30], edx
xor ebx, ebx
mov esi, ecx
cmp di, word [eax + 0x2a]
mov edi, dword [ebp - 4]
jge 0x5090ce
xor ecx, ecx
mov dword [ebp - 0x68], ecx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x508f6e
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x50905e
push 0
push esi
push 0
push 0x48
push edi
call fcn.004d2220
jmp 0x5090a7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0x10]
test al, 0x60
je 0x508f8c
test al, 0x20
lea eax, [esi - 1]
cmove eax, esi
mov esi, eax
jmp 0x5090ad
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x509034
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
mov edi, dword [ebp + 8]
push esi
mov eax, dword [ecx + eax*4 + 4]
push eax
push edi
mov dword [ebp - 0x9c], eax
call fcn.004eef80
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x5090aa
mov edi, dword [edi + 8]
test edi, edi
je 0x5090aa
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 0x6c]
mov edx, dword [edx + 4]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
cmp dword [edi + 0x70], ecx
jg 0x508ffc
push 0
push esi
push eax
push edx
push edi
call fcn.004d2220
jmp 0x5090a7
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [ebp - 0x78]
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 byte [eax + ecx*4 + 1], 0
jmp 0x5090aa
test dword [ebp - 0xa4], 1
je 0x50908f
cmp ebx, 0x1f
jg 0x50908f
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x50908f
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x508f5c
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x48
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 0x5090ad
push esi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.004ede30
mov dword [ebp - 0xb4], 0
add esp, 0x14
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
inc ebx
add dword [ebp - 0x68], 0x14
inc esi
mov ecx, dword [ebp - 0x68]
mov edi, dword [ebp - 4]
movsx eax, word [eax + 0x2a]
cmp ebx, eax
mov eax, dword [ebp - 8]
jl 0x508f48
mov ecx, dword [ebp - 0x6c]
test byte [eax + 0x24], 0x60
je 0x5090e4
push eax
push ecx
push dword [ebp + 8]
call fcn.004e9c60
mov eax, dword [ebp - 8]
add esp, 0xc
test byte [ebp - 0xa4], 1
je 0x50928f
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
push eax
push ebx
call fcn.005071b0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov esi, eax
test eax, eax
je 0x50914c
mov ebx, dword [ebp - 8]
cmp byte [esi + 8], 0x7f
jne 0x509142
cmp byte [esi + 9], 1
jne 0x509142
push dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.004c4760
add esp, 8
test eax, eax
je 0x509142
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp + 8]
call fcn.004e9000
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x509110
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
je 0x5091f8
cmp eax, edx
jg 0x509176
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x1d
push ebx
call fcn.004d2220
add esp, 0x14
mov edx, eax
jmp 0x5091a3
mov esi, dword [ebp - 0x10]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp - 0x24]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x5091c0
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 0x94]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [ebp - 0x6c]
xor esi, esi
mov edi, eax
cmp bx, word [ecx + 0x2a]
jge 0x509279
nop dword [eax]
mov eax, dword [ecx + 4]
movzx eax, word [ebx + eax + 0x10]
test al, 0x60
je 0x50923f
test al, 0x20
lea eax, [edi - 1]
cmove eax, edi
mov edi, eax
jmp 0x509262
cmp eax, edx
jg 0x509210
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x20
push ebx
call fcn.004d2220
add esp, 0x14
jmp 0x5091c0
mov esi, dword [ebp - 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5091c3
mov eax, dword [ebp - 0x18]
cmp dword [eax + esi*4], 0
jge 0x509262
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x509262
push edi
push esi
push edx
push ecx
push dword [ebp - 4]
call fcn.004ede30
mov ecx, dword [ebp - 8]
add esp, 0x14
movsx eax, word [ecx + 0x2a]
inc esi
mov edx, dword [ebp - 0x10]
add ebx, 0x14
inc edi
cmp esi, eax
jl 0x5091e0
mov eax, dword [ebp - 0x6c]
test byte [ecx + 0x24], 0x60
mov esi, dword [ebp + 8]
je 0x509295
push ecx
push eax
push esi
call fcn.004e9c60
add esp, 0xc
jmp 0x509292
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x8c], 0
mov ebx, dword [ebp - 0x44]
jne 0x5094fc
push 0
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x5c]
push dword [ebp - 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x60]
push ecx
push esi
call fcn.004f3f10
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x5092df
cmp byte [ebp - 0x5c], 0
je 0x509394
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
je 0x509352
cmp eax, edx
jg 0x509306
push dword [ebp - 0x24]
push ebx
push edi
push 0x1d
push esi
call fcn.004d2220
add esp, 0x14
mov edx, eax
jmp 0x509333
mov ebx, dword [ebp - 0x44]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x509397
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 0x94]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x509397
cmp eax, edx
jg 0x509368
push dword [ebp - 0x14]
push ebx
push edi
push 0x20
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x509397
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50939a
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x5093bb
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push 0
push edx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f3130
add esp, 0x18
push 0xffffffffffffffff
push dword [ebp - 0x60]
push dword [ebp - 0x70]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f64a0
add esp, 0x18
cmp dword [ebp - 0xb4], 0
je 0x5093fa
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509426
push 0
push 0
push dword [ebp - 0x10]
push 0x87
push esi
call fcn.004d2220
add esp, 0x14
mov edx, dword [ebp - 0x10]
cmp edi, 1
jg 0x50940c
cmp byte [ebp - 0x5c], 0
je 0x509489
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x50945a
push 0
push 0
push edx
push 0x7a
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x509489
mov edx, dword [ebp - 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x87
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
jmp 0x5093fd
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
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 esi, dword [ebp - 8]
test edi, edi
je 0x5094aa
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call fcn.004f3130
add esp, 0x18
mov edi, dword [ebp - 0x3c]
xor eax, eax
push 0
cmp edi, 2
push 0
sete al
lea eax, [eax*2 + 4]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x38]
push dword [ebp - 0x70]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.004e9a40
add esp, 0x24
cmp dword [ebp - 0x20], 0
je 0x5094ff
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004f30a0
add esp, 0x18
jmp 0x5094ff
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 4]
test edx, edx
je 0x509558
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509526
push 0
push 1
push edx
push 0x52
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x509558
mov ebx, dword [ebp - 0x44]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x52
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 eax, dword [ebp - 0x28]
test eax, eax
je 0x5095aa
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp byte [eax + 8], 0x7f
jne 0x50959a
cmp byte [eax + 9], 2
jne 0x50959a
push dword [ebp + 0x10]
push dword [eax + 0x10]
call fcn.004c4760
add esp, 8
test eax, eax
je 0x509597
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x28]
push esi
call fcn.004e9000
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x509565
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x3c]
cmp edi, 1
je 0x5096b2
cmp edi, 2
jne 0x5095f9
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5095e0
push ebx
push esi
push ecx
call fcn.004de4b0
add esp, 0xc
push dword [ebp - 0x74]
call fcn.0051a050
add esp, 4
jmp 0x5096b2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x74]
mov dword [ecx + ebx*4], eax
call fcn.0051a050
add esp, 4
jmp 0x5096b2
cmp dword [ebp - 0x2c], 0
je 0x509669
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x509619
push ebx
push esi
push ecx
call fcn.004de4b0
add esp, 0xc
jmp 0x509622
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509643
mov edx, dword [ebp - 0x98]
push 0
push edx
push dword [ebp - 0x40]
push 5
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x5096b2
mov edx, dword [ebp - 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x98]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
jmp 0x5096a2
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509683
push 0
push ebx
push 0
push 0xb
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x5096b2
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5096cf
push edx
push esi
push ecx
call fcn.004de4b0
add esp, 0xc
jmp 0x5096d8
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x12], 0
jne 0x5096fc
cmp dword [eax + 0x78], 0
jne 0x5096fc
cmp dword [ebp + 0x24], 0
jne 0x5096fc
cmp dword [eax + 0x70], 0
je 0x5096fc
push eax
call fcn.004c0a60
add esp, 4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x5097a5
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509724
push 0
push 1
push edx
push 0x50
push esi
call fcn.004d2220
add esp, 0x14
jmp 0x509753
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x50
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 1
push esi
call fcn.00515200
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x51], 0
jne 0x5097a5
mov esi, dword [esi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x50977a
cmp dword [esi + 0x18], 0
je 0x509783
push esi
call fcn.00521c70
add esp, 4
mov eax, 0xa02
mov dword [esi + 0x10], str.rows_updated
mov dword [esi + 0x24], 0
mov dword [esi + 0xc], 0xc
mov word [esi + 8], ax
mov byte [esi + 0xa], 1
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x507fb4
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xf0], ecx
jmp 0x507fb4
cmp edi, dword [eax + 0x14c]
jae 0x509802
cmp edi, dword [eax + 0x144]
jb 0x5097e7
mov eax, dword [eax + 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x140], edi
jmp 0x509857
cmp edi, dword [eax + 0x148]
jb 0x509802
mov eax, dword [eax + 0x138]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x138], edi
jmp 0x509857
cmp dword [0x5b5c38], 0
je 0x50984d
mov eax, dword [0x5bbcb0]
test eax, eax
je 0x50981e
push eax
call dword [0x5b5c88]
add esp, 4
push edi
call dword [0x5b5c64]
sub dword [0x5bbc50], eax
dec dword [0x5bbc74]
push edi
call dword [0x5b5c5c]
mov eax, dword [0x5bbcb0]
add esp, 8
test eax, eax
je 0x509857
push eax
call dword [0x5b5c90]
jmp 0x509854
push edi
call dword [0x5b5c5c]
add esp, 4
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
call fcn.005062b0
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x50987a
push eax
push edi
call fcn.004cce20
add esp, 8
test ebx, ebx
je 0x509888
push ebx
push edi
call fcn.004f0340
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret