Function at 0x5065d0
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 0x5083ba
cmp byte [eax + 0x51], 0
jne 0x5083ba
push ecx
push esi
call fcn.005053d0
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x5083b7
push dword [ebx + 0x48]
push dword [esi]
call fcn.00501e90
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 0x7f
push ebx
push esi
call fcn.00506230
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
call fcn.00514840
add esp, 0x24
test eax, eax
jne 0x5083b7
push dword [ebp - 0xa4]
push ebx
push esi
call fcn.004f7fe0
add esp, 0xc
test eax, eax
jne 0x5083b7
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 0x5066ec
mov dword [ebp - 0x2c], 0
jmp 0x5066fb
push ebx
call fcn.004ff820
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 0x506734
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 0x506710
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 0x506750
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.004e9f60
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x5083b7
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 0x5067d0
nop
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x5067c0
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 0x506840
cmp dword [esi + 0x74], eax
jne 0x50682c
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x50682c
mov byte [esi + 0x17], 1
push esi
call fcn.00509770
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x506b14
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 0x506a1a
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
nop
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.00500850
add esp, 8
test eax, eax
jne 0x506b11
mov edx, dword [ebp - 8]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x506902
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 0x5068d8
test ecx, ecx
jne 0x5068ea
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x50696e
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 0x506902
movzx eax, byte [eax + 0x584248]
movzx ecx, byte [ecx + 0x584248]
sub ecx, eax
jne 0x5068ed
inc edx
jmp 0x5068a0
mov edx, dword [ebp - 8]
inc edi
mov esi, dword [ebp - 0x20]
add ebx, 0x14
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x506890
mov ebx, dword [ebp - 0x4c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x5069b5
cmp dword [ebp - 0x2c], 0
jne 0x506b33
mov esi, dword [esi + 4]
push str._ROWID_
push esi
call fcn.00505c60
add esp, 8
test eax, eax
je 0x506955
push str.ROWID
push esi
call fcn.00505c60
add esp, 8
test eax, eax
je 0x506955
push 0x58aa98
push esi
call fcn.00505c60
add esp, 8
test eax, eax
jne 0x506b33
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 0x5069c9
cmp dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x74]
je 0x506996
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 1
je 0x506996
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 0x506902
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 0x60
jne 0x506afe
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov dword [eax + edi*4], ebx
jmp 0x506902
test edi, edi
jns 0x5069c0
mov edx, str.ROWID
jmp 0x5069c9
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.004e2c50
add esp, 0x14
cmp eax, 1
je 0x506b11
cmp eax, 2
jne 0x506a02
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 0x506860
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 0x506af0
movzx eax, word [edx + 0x2a]
nop word [eax + eax]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp cx, ax
jge 0x506aed
xor edi, edi
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + esi*4], 0
jge 0x506ad0
mov eax, dword [edx + 4]
test byte [eax + edi + 0x10], 0x60
je 0x506ad0
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], 0x4c3380
test eax, eax
je 0x506aae
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.005252e0
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 9], 0
mov ax, word [ebp - 0xc0]
jne 0x506abf
and ax, word [ebp - 0x7c]
test ax, ax
je 0x506ad0
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 0x506a51
mov eax, ecx
test ebx, ebx
jne 0x506a40
mov bl, byte [ebp - 0x5c]
cmp dword [edx + 0x38], 0
je 0x506b54
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x506b62
push dword [ebp - 0x7c]
push str.cannot_UPDATE_generated_column___s_
push dword [ebp + 8]
call fcn.004ebbf0
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x1f8], 0
je 0x508324
push edi
push eax
call fcn.004d3b20
add esp, 8
jmp 0x5083b7
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.004ebbf0
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x506b11
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.004f28a0
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 0x506cfd
nop
cmp byte [ebp - 0x5c], 0
jne 0x506d70
cmp ebx, 1
jg 0x506d70
cmp esi, dword [ebp - 0x2c]
je 0x506d70
mov eax, dword [esi + 0x24]
test eax, eax
je 0x506c30
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], 0x4c3380
mov dword [ebp - 0xbc], ecx
call fcn.005252e0
mov ax, word [ebp - 0xc0]
add esp, 8
cmp byte [ebp - 9], 0
jne 0x506c27
mov ecx, 0xfffd
and ax, cx
test ax, ax
jne 0x506d70
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], ecx
cmp ax, word [esi + 0x32]
jae 0x506cda
xor ebx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x506c5f
cwde
mov eax, dword [ecx + eax*4]
not eax
shr eax, 0x1f
jmp 0x506cc3
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], 0x4c3380
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x506ca6
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.005252e0
add esp, 8
cmp byte [ebp - 9], 0
mov cx, word [ebp - 0xdc]
jne 0x506cbb
mov eax, 0xfffd
and cx, ax
xor eax, eax
test cx, cx
setne al
test eax, eax
jne 0x506d45
movzx eax, word [esi + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x506c45
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 0x506bb0
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 0x506d27
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 0x506d37
mov eax, dword [ebp - 4]
or dword [eax + 0x98], 0x20
cmp dword [ebp - 0x28], 0
jne 0x506d90
test ebx, ebx
jne 0x506d90
xor bl, bl
jmp 0x506d92
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 0x506d83
cmp byte [esi + 0x36], 5
jne 0x506d83
mov dword [ebp - 0x58], 1
jmp 0x506d83
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 0x506ce5
jmp 0x506cdd
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 0x506dc2
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x506dc2
push esi
call fcn.004fa400
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 0x506e43
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 0x506e06
test edx, edx
jne 0x506e06
mov eax, dword [ebp - 0x20]
mov ecx, edi
test eax, eax
je 0x506e1b
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 0x506e29
test edx, edx
jne 0x506e29
test eax, eax
je 0x506e34
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 0x506e66
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 0x506e7b
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 0x506e96
push dword [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push esi
push ebx
call fcn.004f9af0
add esp, 0x18
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00500850
add esp, 8
test eax, eax
jne 0x508305
cmp dword [esi + 0x38], eax
je 0x506ed6
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.0051ed30
add esp, 0x20
jmp 0x508308
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 0x506f60
cmp dword [ebx + 0x78], 0
jne 0x506f60
cmp byte [ebx + 0x12], 0
jne 0x506f60
cmp dword [ebp + 0x24], 0
jne 0x506f60
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 0x506f2c
push 0
push edx
push 0
push 0x45
push ebx
call fcn.004d0d80
add esp, 0x14
jmp 0x506f63
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 0x506f63
mov ebx, dword [ebp - 4]
test byte [esi + 0x24], 0x80
jne 0x507031
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x506f8a
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0x48
push ebx
call fcn.004d0d80
add esp, 0x14
jmp 0x506fbb
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 0x50714f
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.004ef1b0
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 0x5072b5
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x507211
push 0
push dword [ebp - 0x14]
push edx
push 0x7f
push ebx
call fcn.004d0d80
mov edx, dword [ebp - 0x14]
add esp, 0x14
jmp 0x507242
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 0x506fc8
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 0x50708a
push edx
push eax
push 0
push 0x48
push ebx
call fcn.004d0d80
add esp, 0x14
jmp 0x5070bb
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 0x5070e2
push 0
push esi
push dword [ebp - 0x40]
push 0x64
push ebx
call fcn.004d0d80
add esp, 0x14
mov dword [ebp - 0xa0], eax
jmp 0x507110
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.004f83c0
mov edx, eax
add esp, 8
test edx, edx
je 0x507152
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x50713b
push edx
push 0xfffffffffffffff7
push eax
call fcn.004ce520
add esp, 0xc
jmp 0x507152
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 0x507152
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12], 0
mov eax, 0x1004
jne 0x50717b
cmp dword [ebp - 0x28], 0
jne 0x50717b
cmp dword [ebp - 0x20], 0
jne 0x50717b
cmp byte [ebp - 0x5c], 0
jne 0x50717b
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.00516300
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x508305
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 0x506fff
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 0x506fff
test edi, edi
js 0x506fff
cmp edi, edx
je 0x506fff
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 0x506fff
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 0x50748d
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 0x50727f
push esi
push edx
push dword [ebp - 0x30]
push 0x93
push ebx
call fcn.004d0d80
add esp, 0x14
jmp 0x50748d
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 0x50748d
mov eax, dword [ebp - 0x78]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x5072ee
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.004ec990
mov ecx, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0x10]
add esp, 0x14
cmp esi, ebx
jl 0x5072c4
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x507345
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x507334
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp byte [edx + 0x51], 0
jne 0x507334
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.004ce520
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 0x50748a
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.004f6660
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x507376
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x48]
push 0x5b
push ecx
call fcn.004d0d80
add esp, 0x14
mov edx, eax
jmp 0x5073a9
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 0x5073c6
cmp ebx, 0xfffffff4
je 0x507411
push esi
push ebx
push eax
call fcn.004ce520
add esp, 0xc
jmp 0x507411
test edx, edx
jns 0x5073ce
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 0x507405
cmp byte [eax + 1], 0
jne 0x507405
cmp ebx, 0xfffffffd
jne 0x5073f1
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
jmp 0x507411
test esi, esi
je 0x507411
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
cmp ebx, 0xfffffff4
jne 0x507411
inc dword [esi + 0xc]
jmp 0x507411
push ebx
push esi
push eax
push edx
call fcn.0051f9e0
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp dword [eax + 0x70], edx
jg 0x50743a
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x83
push eax
call fcn.004d0d80
mov esi, dword [ebp - 4]
add esp, 0x14
mov edx, eax
jmp 0x507470
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 0x507487
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 0x507810
cmp esi, 2
je 0x5074a7
push dword [ebp - 0x74]
call fcn.00518bc0
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x50759d
mov ecx, dword [ebp - 0x3c]
xor esi, esi
test ecx, ecx
je 0x5074e2
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
test eax, eax
js 0x5074d2
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
test edi, edi
js 0x5074e2
mov eax, edi
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x50754a
mov ecx, dword [ebp - 0x84]
xor eax, eax
test edi, edi
setns al
sub ecx, eax
test ecx, ecx
jle 0x50754a
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x507517
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004d0d80
add esp, 0x14
mov esi, eax
jmp 0x50754a
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.004fa1f0
add esp, 0x20
test esi, esi
je 0x507594
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x507580
mov eax, 0x5bad84
jmp 0x507591
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 0x507641
test eax, eax
jne 0x5075d3
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
je 0x5075d3
mov ebx, dword [ebp - 0x34]
cmp edi, eax
mov edi, dword [ebp - 4]
je 0x5075d9
push dword [ebp - 0x94]
push dword [ebp - 0x24]
push ebx
push eax
push 0x1d
push edi
call fcn.00509060
add esp, 0x18
jmp 0x5075d9
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
cmp esi, 1
je 0x5075ea
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 0x507611
push 0
push ebx
push edx
push 0x32
push edi
call fcn.004d0d80
add esp, 0x14
jmp 0x507813
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 0x507813
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 4]
je 0x507775
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 0x507678
mov edx, dword [ebp - 0x34]
push 0
push edx
push dword [ebp - 0x40]
push 0x25
push edi
call fcn.004d0d80
add esp, 0x14
jmp 0x5076a9
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 0x5076d2
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x7e
push edi
call fcn.004d0d80
add esp, 0x14
mov dword [ebp - 0x98], eax
jmp 0x507703
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 0x507721
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
push 0x1d
push edi
call fcn.004d0d80
add esp, 0x14
mov edx, eax
jmp 0x507751
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 0x507816
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 0x507816
mov ebx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ebx
jg 0x50779d
mov edx, dword [ebp - 0x34]
push esi
push edx
push dword [ebp - 0x30]
push 0x2a
push edi
call fcn.004d0d80
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x44], ebx
jmp 0x5077ca
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 0x5077e4
push esi
push ebx
push dword [ebp - 0x10]
push 0x20
push edi
call fcn.004d0d80
add esp, 0x14
jmp 0x507813
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 0x507813
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp byte [ebp - 9], 0
je 0x5078f6
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x90]
push ebx
push esi
call fcn.004edae0
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp edi, eax
je 0x5078a7
mov esi, dword [esi + 8]
test esi, esi
je 0x5078a4
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 0x50786b
push 0
push eax
push edi
push edx
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x5078a1
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 0x5078c4
push 0
push 0
push eax
push 0xf
push edi
call fcn.004d0d80
add esp, 0x14
jmp 0x5078f6
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 0x507942
cmp dword [ebp - 0x20], 0
jne 0x507948
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x507a6b
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.00506100
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 0x507a0e
xor edi, edi
jmp 0x50795b
cmp dword [ebp - 0x20], 0
je 0x50790d
push dword [ebp - 8]
push esi
call fcn.004f27c0
add esp, 8
mov ebx, eax
jmp 0x50790f
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.00505e20
movsx edx, ax
add esp, 8
add edx, dword [ebp - 0x9c]
cmp ebx, 0xffffffff
je 0x5079e5
cmp esi, 0x20
jge 0x507985
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x5079e5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x10], 1
jne 0x5079e5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x5079ac
push 0
push edx
push 0
push 0x48
push eax
call fcn.004d0d80
jmp 0x5079f5
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 0x5079f8
push edx
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ec990
add esp, 0x14
mov eax, dword [ebp - 8]
inc esi
add edi, 0x14
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x507958
mov edi, dword [ebp - 4]
cmp byte [ebp - 9], 0
jne 0x507a68
cmp dword [ebp - 0x2c], 0
jne 0x507a68
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x507a37
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x4d
push edi
call fcn.004d0d80
add esp, 0x14
jmp 0x507a68
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.00506100
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 0x507c2e
xor ecx, ecx
mov dword [ebp - 0x68], ecx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x507ace
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x507bbe
push 0
push esi
push 0
push 0x48
push edi
call fcn.004d0d80
jmp 0x507c07
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0x10]
test al, 0x60
je 0x507aec
test al, 0x20
lea eax, [esi - 1]
cmove eax, esi
mov esi, eax
jmp 0x507c0d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x507b94
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.004edae0
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x507c0a
mov edi, dword [edi + 8]
test edi, edi
je 0x507c0a
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 0x507b5c
push 0
push esi
push eax
push edx
push edi
call fcn.004d0d80
jmp 0x507c07
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 0x507c0a
test dword [ebp - 0xa4], 1
je 0x507bef
cmp ebx, 0x1f
jg 0x507bef
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x507bef
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x507abc
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 0x507c0d
push esi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.004ec990
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 0x507aa8
mov ecx, dword [ebp - 0x6c]
test byte [eax + 0x24], 0x60
je 0x507c44
push eax
push ecx
push dword [ebp + 8]
call fcn.004e87c0
mov eax, dword [ebp - 8]
add esp, 0xc
test byte [ebp - 0xa4], 1
je 0x507def
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
push eax
push ebx
call fcn.00505d10
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov esi, eax
test eax, eax
je 0x507cac
mov ebx, dword [ebp - 8]
cmp byte [esi + 8], 0x7f
jne 0x507ca2
cmp byte [esi + 9], 1
jne 0x507ca2
push dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.004c32c0
add esp, 8
test eax, eax
je 0x507ca2
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp + 8]
call fcn.004e7b60
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x507c70
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
je 0x507d58
cmp eax, edx
jg 0x507cd6
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x1d
push ebx
call fcn.004d0d80
add esp, 0x14
mov edx, eax
jmp 0x507d03
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 0x507d20
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 0x507dd9
nop dword [eax]
mov eax, dword [ecx + 4]
movzx eax, word [ebx + eax + 0x10]
test al, 0x60
je 0x507d9f
test al, 0x20
lea eax, [edi - 1]
cmove eax, edi
mov edi, eax
jmp 0x507dc2
cmp eax, edx
jg 0x507d70
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x20
push ebx
call fcn.004d0d80
add esp, 0x14
jmp 0x507d20
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 0x507d23
mov eax, dword [ebp - 0x18]
cmp dword [eax + esi*4], 0
jge 0x507dc2
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x507dc2
push edi
push esi
push edx
push ecx
push dword [ebp - 4]
call fcn.004ec990
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 0x507d40
mov eax, dword [ebp - 0x6c]
test byte [ecx + 0x24], 0x60
mov esi, dword [ebp + 8]
je 0x507df5
push ecx
push eax
push esi
call fcn.004e87c0
add esp, 0xc
jmp 0x507df2
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x8c], 0
mov ebx, dword [ebp - 0x44]
jne 0x50805c
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.004f2a70
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x507e3f
cmp byte [ebp - 0x5c], 0
je 0x507ef4
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
je 0x507eb2
cmp eax, edx
jg 0x507e66
push dword [ebp - 0x24]
push ebx
push edi
push 0x1d
push esi
call fcn.004d0d80
add esp, 0x14
mov edx, eax
jmp 0x507e93
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 0x507ef7
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 0x507ef7
cmp eax, edx
jg 0x507ec8
push dword [ebp - 0x14]
push ebx
push edi
push 0x20
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x507ef7
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 0x507efa
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x507f1b
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push 0
push edx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f1c90
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.004f5000
add esp, 0x18
cmp dword [ebp - 0xb4], 0
je 0x507f5a
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x507f86
push 0
push 0
push dword [ebp - 0x10]
push 0x87
push esi
call fcn.004d0d80
add esp, 0x14
mov edx, dword [ebp - 0x10]
cmp edi, 1
jg 0x507f6c
cmp byte [ebp - 0x5c], 0
je 0x507fe9
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x507fba
push 0
push 0
push edx
push 0x7a
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x507fe9
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 0x507f5d
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 0x50800a
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call fcn.004f1c90
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.004e85a0
add esp, 0x24
cmp dword [ebp - 0x20], 0
je 0x50805f
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004f1c00
add esp, 0x18
jmp 0x50805f
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 4]
test edx, edx
je 0x5080b8
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x508086
push 0
push 1
push edx
push 0x52
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x5080b8
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 0x50810a
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp byte [eax + 8], 0x7f
jne 0x5080fa
cmp byte [eax + 9], 2
jne 0x5080fa
push dword [ebp + 0x10]
push dword [eax + 0x10]
call fcn.004c32c0
add esp, 8
test eax, eax
je 0x5080f7
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x28]
push esi
call fcn.004e7b60
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x5080c5
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x3c]
cmp edi, 1
je 0x508212
cmp edi, 2
jne 0x508159
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508140
push ebx
push esi
push ecx
call fcn.004dd010
add esp, 0xc
push dword [ebp - 0x74]
call fcn.00518bc0
add esp, 4
jmp 0x508212
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x74]
mov dword [ecx + ebx*4], eax
call fcn.00518bc0
add esp, 4
jmp 0x508212
cmp dword [ebp - 0x2c], 0
je 0x5081c9
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508179
push ebx
push esi
push ecx
call fcn.004dd010
add esp, 0xc
jmp 0x508182
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 0x5081a3
mov edx, dword [ebp - 0x98]
push 0
push edx
push dword [ebp - 0x40]
push 5
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x508212
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 0x508202
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5081e3
push 0
push ebx
push 0
push 0xb
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x508212
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 0x50822f
push edx
push esi
push ecx
call fcn.004dd010
add esp, 0xc
jmp 0x508238
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 0x50825c
cmp dword [eax + 0x78], 0
jne 0x50825c
cmp dword [ebp + 0x24], 0
jne 0x50825c
cmp dword [eax + 0x70], 0
je 0x50825c
push eax
call fcn.004bf5c0
add esp, 4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x508305
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x508284
push 0
push 1
push edx
push 0x50
push esi
call fcn.004d0d80
add esp, 0x14
jmp 0x5082b3
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.00513d70
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x51], 0
jne 0x508305
mov esi, dword [esi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x5082da
cmp dword [esi + 0x18], 0
je 0x5082e3
push esi
call fcn.005207e0
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 0x506b14
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xf0], ecx
jmp 0x506b14
cmp edi, dword [eax + 0x14c]
jae 0x508362
cmp edi, dword [eax + 0x144]
jb 0x508347
mov eax, dword [eax + 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x140], edi
jmp 0x5083b7
cmp edi, dword [eax + 0x148]
jb 0x508362
mov eax, dword [eax + 0x138]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x138], edi
jmp 0x5083b7
cmp dword [0x5b4c38], 0
je 0x5083ad
mov eax, dword [0x5bac60]
test eax, eax
je 0x50837e
push eax
call dword [0x5b4c88]
add esp, 4
push edi
call dword [0x5b4c64]
sub dword [0x5bac00], eax
dec dword [0x5bac24]
push edi
call dword [0x5b4c5c]
mov eax, dword [0x5bac60]
add esp, 8
test eax, eax
je 0x5083b7
push eax
call dword [0x5b4c90]
jmp 0x5083b4
push edi
call dword [0x5b4c5c]
add esp, 4
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
call fcn.00504e10
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x5083da
push eax
push edi
call fcn.004cb980
add esp, 8
test ebx, ebx
je 0x5083e8
push ebx
push edi
call fcn.004eeea0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret