Function at 0x5054e0
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 0x5072ca
cmp byte [eax + 0x51], 0
jne 0x5072ca
push ecx
push esi
call fcn.005042e0
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x5072c7
push dword [ebx + 0x48]
push dword [esi]
call fcn.00500da0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 0x7f
push ebx
push esi
call fcn.00505140
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
call fcn.00513740
add esp, 0x24
test eax, eax
jne 0x5072c7
push dword [ebp - 0xa4]
push ebx
push esi
call fcn.004f6ef0
add esp, 0xc
test eax, eax
jne 0x5072c7
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 0x5055fc
mov dword [ebp - 0x2c], 0
jmp 0x50560b
push ebx
call fcn.004fe730
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 0x505644
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 0x505620
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 0x505660
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.004e8e80
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x5072c7
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 0x5056e0
nop
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x5056d0
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 0x505750
cmp dword [esi + 0x74], eax
jne 0x50573c
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x50573c
mov byte [esi + 0x17], 1
push esi
call fcn.00508680
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x505a24
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 0x50592a
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
nop
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.004ff760
add esp, 8
test eax, eax
jne 0x505a21
mov edx, dword [ebp - 8]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x505812
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 0x5057e8
test ecx, ecx
jne 0x5057fa
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x50587e
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 0x505812
movzx eax, byte [eax + 0x5834a8]
movzx ecx, byte [ecx + 0x5834a8]
sub ecx, eax
jne 0x5057fd
inc edx
jmp 0x5057b0
mov edx, dword [ebp - 8]
inc edi
mov esi, dword [ebp - 0x20]
add ebx, 0x14
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x5057a0
mov ebx, dword [ebp - 0x4c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x5058c5
cmp dword [ebp - 0x2c], 0
jne 0x505a43
mov esi, dword [esi + 4]
push str._ROWID_
push esi
call fcn.00504b70
add esp, 8
test eax, eax
je 0x505865
push str.ROWID
push esi
call fcn.00504b70
add esp, 8
test eax, eax
je 0x505865
push 0x589cf8
push esi
call fcn.00504b70
add esp, 8
test eax, eax
jne 0x505a43
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 0x5058d9
cmp dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x74]
je 0x5058a6
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 1
je 0x5058a6
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 0x505812
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 0x60
jne 0x505a0e
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov dword [eax + edi*4], ebx
jmp 0x505812
test edi, edi
jns 0x5058d0
mov edx, str.ROWID
jmp 0x5058d9
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.004e1b60
add esp, 0x14
cmp eax, 1
je 0x505a21
cmp eax, 2
jne 0x505912
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 0x505770
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 0x505a00
movzx eax, word [edx + 0x2a]
nop word [eax + eax]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp cx, ax
jge 0x5059fd
xor edi, edi
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + esi*4], 0
jge 0x5059e0
mov eax, dword [edx + 4]
test byte [eax + edi + 0x10], 0x60
je 0x5059e0
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], 0x4c2290
test eax, eax
je 0x5059be
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.005241e0
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 9], 0
mov ax, word [ebp - 0xc0]
jne 0x5059cf
and ax, word [ebp - 0x7c]
test ax, ax
je 0x5059e0
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 0x505961
mov eax, ecx
test ebx, ebx
jne 0x505950
mov bl, byte [ebp - 0x5c]
cmp dword [edx + 0x38], 0
je 0x505a64
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x505a72
push dword [ebp - 0x7c]
push str.cannot_UPDATE_generated_column___s_
push dword [ebp + 8]
call fcn.004eab10
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x1f8], 0
je 0x507234
push edi
push eax
call fcn.004d2a30
add esp, 8
jmp 0x5072c7
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.004eab10
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x505a21
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.004f17c0
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 0x505c0d
nop
cmp byte [ebp - 0x5c], 0
jne 0x505c80
cmp ebx, 1
jg 0x505c80
cmp esi, dword [ebp - 0x2c]
je 0x505c80
mov eax, dword [esi + 0x24]
test eax, eax
je 0x505b40
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], 0x4c2290
mov dword [ebp - 0xbc], ecx
call fcn.005241e0
mov ax, word [ebp - 0xc0]
add esp, 8
cmp byte [ebp - 9], 0
jne 0x505b37
mov ecx, 0xfffd
and ax, cx
test ax, ax
jne 0x505c80
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], ecx
cmp ax, word [esi + 0x32]
jae 0x505bea
xor ebx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x505b6f
cwde
mov eax, dword [ecx + eax*4]
not eax
shr eax, 0x1f
jmp 0x505bd3
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], 0x4c2290
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x505bb6
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.005241e0
add esp, 8
cmp byte [ebp - 9], 0
mov cx, word [ebp - 0xdc]
jne 0x505bcb
mov eax, 0xfffd
and cx, ax
xor eax, eax
test cx, cx
setne al
test eax, eax
jne 0x505c55
movzx eax, word [esi + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x505b55
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 0x505ac0
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 0x505c37
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 0x505c47
mov eax, dword [ebp - 4]
or dword [eax + 0x98], 0x20
cmp dword [ebp - 0x28], 0
jne 0x505ca0
test ebx, ebx
jne 0x505ca0
xor bl, bl
jmp 0x505ca2
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 0x505c93
cmp byte [esi + 0x36], 5
jne 0x505c93
mov dword [ebp - 0x58], 1
jmp 0x505c93
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 0x505bf5
jmp 0x505bed
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 0x505cd2
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x505cd2
push esi
call fcn.004f9310
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 0x505d53
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 0x505d16
test edx, edx
jne 0x505d16
mov eax, dword [ebp - 0x20]
mov ecx, edi
test eax, eax
je 0x505d2b
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 0x505d39
test edx, edx
jne 0x505d39
test eax, eax
je 0x505d44
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 0x505d76
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 0x505d8b
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 0x505da6
push dword [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push esi
push ebx
call fcn.004f8a00
add esp, 0x18
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004ff760
add esp, 8
test eax, eax
jne 0x507215
cmp dword [esi + 0x38], eax
je 0x505de6
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.0051dc30
add esp, 0x20
jmp 0x507218
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 0x505e70
cmp dword [ebx + 0x78], 0
jne 0x505e70
cmp byte [ebx + 0x12], 0
jne 0x505e70
cmp dword [ebp + 0x24], 0
jne 0x505e70
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 0x505e3c
push 0
push edx
push 0
push 0x45
push ebx
call fcn.004cfc90
add esp, 0x14
jmp 0x505e73
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 0x505e73
mov ebx, dword [ebp - 4]
test byte [esi + 0x24], 0x80
jne 0x505f41
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x505e9a
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0x48
push ebx
call fcn.004cfc90
add esp, 0x14
jmp 0x505ecb
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 0x50605f
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.004ee0d0
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 0x5061c5
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x506121
push 0
push dword [ebp - 0x14]
push edx
push 0x7f
push ebx
call fcn.004cfc90
mov edx, dword [ebp - 0x14]
add esp, 0x14
jmp 0x506152
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 0x505ed8
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 0x505f9a
push edx
push eax
push 0
push 0x48
push ebx
call fcn.004cfc90
add esp, 0x14
jmp 0x505fcb
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 0x505ff2
push 0
push esi
push dword [ebp - 0x40]
push 0x64
push ebx
call fcn.004cfc90
add esp, 0x14
mov dword [ebp - 0xa0], eax
jmp 0x506020
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.004f72d0
mov edx, eax
add esp, 8
test edx, edx
je 0x506062
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x50604b
push edx
push 0xfffffffffffffff7
push eax
call fcn.004cd430
add esp, 0xc
jmp 0x506062
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 0x506062
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12], 0
mov eax, 0x1004
jne 0x50608b
cmp dword [ebp - 0x28], 0
jne 0x50608b
cmp dword [ebp - 0x20], 0
jne 0x50608b
cmp byte [ebp - 0x5c], 0
jne 0x50608b
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.00515200
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x507215
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 0x505f0f
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 0x505f0f
test edi, edi
js 0x505f0f
cmp edi, edx
je 0x505f0f
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 0x505f0f
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 0x50639d
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 0x50618f
push esi
push edx
push dword [ebp - 0x30]
push 0x93
push ebx
call fcn.004cfc90
add esp, 0x14
jmp 0x50639d
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 0x50639d
mov eax, dword [ebp - 0x78]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x5061fe
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.004eb8b0
mov ecx, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0x10]
add esp, 0x14
cmp esi, ebx
jl 0x5061d4
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x506255
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x506244
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp byte [edx + 0x51], 0
jne 0x506244
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.004cd430
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 0x50639a
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.004f5570
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x506286
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x48]
push 0x5b
push ecx
call fcn.004cfc90
add esp, 0x14
mov edx, eax
jmp 0x5062b9
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 0x5062d6
cmp ebx, 0xfffffff4
je 0x506321
push esi
push ebx
push eax
call fcn.004cd430
add esp, 0xc
jmp 0x506321
test edx, edx
jns 0x5062de
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 0x506315
cmp byte [eax + 1], 0
jne 0x506315
cmp ebx, 0xfffffffd
jne 0x506301
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
jmp 0x506321
test esi, esi
je 0x506321
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
cmp ebx, 0xfffffff4
jne 0x506321
inc dword [esi + 0xc]
jmp 0x506321
push ebx
push esi
push eax
push edx
call fcn.0051e8e0
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp dword [eax + 0x70], edx
jg 0x50634a
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x83
push eax
call fcn.004cfc90
mov esi, dword [ebp - 4]
add esp, 0x14
mov edx, eax
jmp 0x506380
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 0x506397
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 0x506720
cmp esi, 2
je 0x5063b7
push dword [ebp - 0x74]
call fcn.00517ac0
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x5064ad
mov ecx, dword [ebp - 0x3c]
xor esi, esi
test ecx, ecx
je 0x5063f2
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
test eax, eax
js 0x5063e2
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
test edi, edi
js 0x5063f2
mov eax, edi
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x50645a
mov ecx, dword [ebp - 0x84]
xor eax, eax
test edi, edi
setns al
sub ecx, eax
test ecx, ecx
jle 0x50645a
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x506427
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004cfc90
add esp, 0x14
mov esi, eax
jmp 0x50645a
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.004f9100
add esp, 0x20
test esi, esi
je 0x5064a4
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x506490
mov eax, 0x5b9dd4
jmp 0x5064a1
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 0x506551
test eax, eax
jne 0x5064e3
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
je 0x5064e3
mov ebx, dword [ebp - 0x34]
cmp edi, eax
mov edi, dword [ebp - 4]
je 0x5064e9
push dword [ebp - 0x94]
push dword [ebp - 0x24]
push ebx
push eax
push 0x1d
push edi
call fcn.00507f70
add esp, 0x18
jmp 0x5064e9
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
cmp esi, 1
je 0x5064fa
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 0x506521
push 0
push ebx
push edx
push 0x32
push edi
call fcn.004cfc90
add esp, 0x14
jmp 0x506723
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 0x506723
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 4]
je 0x506685
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 0x506588
mov edx, dword [ebp - 0x34]
push 0
push edx
push dword [ebp - 0x40]
push 0x25
push edi
call fcn.004cfc90
add esp, 0x14
jmp 0x5065b9
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 0x5065e2
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x7e
push edi
call fcn.004cfc90
add esp, 0x14
mov dword [ebp - 0x98], eax
jmp 0x506613
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 0x506631
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
push 0x1d
push edi
call fcn.004cfc90
add esp, 0x14
mov edx, eax
jmp 0x506661
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 0x506726
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 0x506726
mov ebx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ebx
jg 0x5066ad
mov edx, dword [ebp - 0x34]
push esi
push edx
push dword [ebp - 0x30]
push 0x2a
push edi
call fcn.004cfc90
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x44], ebx
jmp 0x5066da
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 0x5066f4
push esi
push ebx
push dword [ebp - 0x10]
push 0x20
push edi
call fcn.004cfc90
add esp, 0x14
jmp 0x506723
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 0x506723
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp byte [ebp - 9], 0
je 0x506806
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x90]
push ebx
push esi
call fcn.004eca00
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp edi, eax
je 0x5067b7
mov esi, dword [esi + 8]
test esi, esi
je 0x5067b4
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 0x50677b
push 0
push eax
push edi
push edx
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x5067b1
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 0x5067d4
push 0
push 0
push eax
push 0xf
push edi
call fcn.004cfc90
add esp, 0x14
jmp 0x506806
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 0x506852
cmp dword [ebp - 0x20], 0
jne 0x506858
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x50697b
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.00505010
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 0x50691e
xor edi, edi
jmp 0x50686b
cmp dword [ebp - 0x20], 0
je 0x50681d
push dword [ebp - 8]
push esi
call fcn.004f16e0
add esp, 8
mov ebx, eax
jmp 0x50681f
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.00504d30
movsx edx, ax
add esp, 8
add edx, dword [ebp - 0x9c]
cmp ebx, 0xffffffff
je 0x5068f5
cmp esi, 0x20
jge 0x506895
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x5068f5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x10], 1
jne 0x5068f5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x5068bc
push 0
push edx
push 0
push 0x48
push eax
call fcn.004cfc90
jmp 0x506905
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 0x506908
push edx
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004eb8b0
add esp, 0x14
mov eax, dword [ebp - 8]
inc esi
add edi, 0x14
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x506868
mov edi, dword [ebp - 4]
cmp byte [ebp - 9], 0
jne 0x506978
cmp dword [ebp - 0x2c], 0
jne 0x506978
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x506947
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x4d
push edi
call fcn.004cfc90
add esp, 0x14
jmp 0x506978
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.00505010
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 0x506b3e
xor ecx, ecx
mov dword [ebp - 0x68], ecx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x5069de
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x506ace
push 0
push esi
push 0
push 0x48
push edi
call fcn.004cfc90
jmp 0x506b17
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0x10]
test al, 0x60
je 0x5069fc
test al, 0x20
lea eax, [esi - 1]
cmove eax, esi
mov esi, eax
jmp 0x506b1d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x506aa4
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.004eca00
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x506b1a
mov edi, dword [edi + 8]
test edi, edi
je 0x506b1a
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 0x506a6c
push 0
push esi
push eax
push edx
push edi
call fcn.004cfc90
jmp 0x506b17
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 0x506b1a
test dword [ebp - 0xa4], 1
je 0x506aff
cmp ebx, 0x1f
jg 0x506aff
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x506aff
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x5069cc
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 0x506b1d
push esi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.004eb8b0
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 0x5069b8
mov ecx, dword [ebp - 0x6c]
test byte [eax + 0x24], 0x60
je 0x506b54
push eax
push ecx
push dword [ebp + 8]
call fcn.004e76e0
mov eax, dword [ebp - 8]
add esp, 0xc
test byte [ebp - 0xa4], 1
je 0x506cff
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
push eax
push ebx
call fcn.00504c20
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov esi, eax
test eax, eax
je 0x506bbc
mov ebx, dword [ebp - 8]
cmp byte [esi + 8], 0x7f
jne 0x506bb2
cmp byte [esi + 9], 1
jne 0x506bb2
push dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.004c21d0
add esp, 8
test eax, eax
je 0x506bb2
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp + 8]
call fcn.004e6a80
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x506b80
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
je 0x506c68
cmp eax, edx
jg 0x506be6
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x1d
push ebx
call fcn.004cfc90
add esp, 0x14
mov edx, eax
jmp 0x506c13
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 0x506c30
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 0x506ce9
nop dword [eax]
mov eax, dword [ecx + 4]
movzx eax, word [ebx + eax + 0x10]
test al, 0x60
je 0x506caf
test al, 0x20
lea eax, [edi - 1]
cmove eax, edi
mov edi, eax
jmp 0x506cd2
cmp eax, edx
jg 0x506c80
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x20
push ebx
call fcn.004cfc90
add esp, 0x14
jmp 0x506c30
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 0x506c33
mov eax, dword [ebp - 0x18]
cmp dword [eax + esi*4], 0
jge 0x506cd2
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x506cd2
push edi
push esi
push edx
push ecx
push dword [ebp - 4]
call fcn.004eb8b0
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 0x506c50
mov eax, dword [ebp - 0x6c]
test byte [ecx + 0x24], 0x60
mov esi, dword [ebp + 8]
je 0x506d05
push ecx
push eax
push esi
call fcn.004e76e0
add esp, 0xc
jmp 0x506d02
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x8c], 0
mov ebx, dword [ebp - 0x44]
jne 0x506f6c
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.004f1990
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x506d4f
cmp byte [ebp - 0x5c], 0
je 0x506e04
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
je 0x506dc2
cmp eax, edx
jg 0x506d76
push dword [ebp - 0x24]
push ebx
push edi
push 0x1d
push esi
call fcn.004cfc90
add esp, 0x14
mov edx, eax
jmp 0x506da3
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 0x506e07
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 0x506e07
cmp eax, edx
jg 0x506dd8
push dword [ebp - 0x14]
push ebx
push edi
push 0x20
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x506e07
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 0x506e0a
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x506e2b
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push 0
push edx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f0bb0
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.004f3f20
add esp, 0x18
cmp dword [ebp - 0xb4], 0
je 0x506e6a
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506e96
push 0
push 0
push dword [ebp - 0x10]
push 0x87
push esi
call fcn.004cfc90
add esp, 0x14
mov edx, dword [ebp - 0x10]
cmp edi, 1
jg 0x506e7c
cmp byte [ebp - 0x5c], 0
je 0x506ef9
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506eca
push 0
push 0
push edx
push 0x7a
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x506ef9
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 0x506e6d
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 0x506f1a
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call fcn.004f0bb0
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.004e74c0
add esp, 0x24
cmp dword [ebp - 0x20], 0
je 0x506f6f
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004f0b20
add esp, 0x18
jmp 0x506f6f
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 4]
test edx, edx
je 0x506fc8
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506f96
push 0
push 1
push edx
push 0x52
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x506fc8
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 0x50701a
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp byte [eax + 8], 0x7f
jne 0x50700a
cmp byte [eax + 9], 2
jne 0x50700a
push dword [ebp + 0x10]
push dword [eax + 0x10]
call fcn.004c21d0
add esp, 8
test eax, eax
je 0x507007
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x28]
push esi
call fcn.004e6a80
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x506fd5
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x3c]
cmp edi, 1
je 0x507122
cmp edi, 2
jne 0x507069
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x507050
push ebx
push esi
push ecx
call fcn.004dbf20
add esp, 0xc
push dword [ebp - 0x74]
call fcn.00517ac0
add esp, 4
jmp 0x507122
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x74]
mov dword [ecx + ebx*4], eax
call fcn.00517ac0
add esp, 4
jmp 0x507122
cmp dword [ebp - 0x2c], 0
je 0x5070d9
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x507089
push ebx
push esi
push ecx
call fcn.004dbf20
add esp, 0xc
jmp 0x507092
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 0x5070b3
mov edx, dword [ebp - 0x98]
push 0
push edx
push dword [ebp - 0x40]
push 5
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x507122
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 0x507112
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5070f3
push 0
push ebx
push 0
push 0xb
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x507122
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 0x50713f
push edx
push esi
push ecx
call fcn.004dbf20
add esp, 0xc
jmp 0x507148
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 0x50716c
cmp dword [eax + 0x78], 0
jne 0x50716c
cmp dword [ebp + 0x24], 0
jne 0x50716c
cmp dword [eax + 0x70], 0
je 0x50716c
push eax
call fcn.004be4d0
add esp, 4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x507215
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x507194
push 0
push 1
push edx
push 0x50
push esi
call fcn.004cfc90
add esp, 0x14
jmp 0x5071c3
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.00512c70
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x51], 0
jne 0x507215
mov esi, dword [esi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x5071ea
cmp dword [esi + 0x18], 0
je 0x5071f3
push esi
call fcn.0051f6e0
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 0x505a24
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xf0], ecx
jmp 0x505a24
cmp edi, dword [eax + 0x14c]
jae 0x507272
cmp edi, dword [eax + 0x144]
jb 0x507257
mov eax, dword [eax + 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x140], edi
jmp 0x5072c7
cmp edi, dword [eax + 0x148]
jb 0x507272
mov eax, dword [eax + 0x138]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x138], edi
jmp 0x5072c7
cmp dword [0x5b3c38], 0
je 0x5072bd
mov eax, dword [0x5b9cb0]
test eax, eax
je 0x50728e
push eax
call dword [0x5b3c88]
add esp, 4
push edi
call dword [0x5b3c64]
sub dword [0x5b9c50], eax
dec dword [0x5b9c74]
push edi
call dword [0x5b3c5c]
mov eax, dword [0x5b9cb0]
add esp, 8
test eax, eax
je 0x5072c7
push eax
call dword [0x5b3c90]
jmp 0x5072c4
push edi
call dword [0x5b3c5c]
add esp, 4
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
call fcn.00503d20
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x5072ea
push eax
push edi
call fcn.004ca890
add esp, 8
test ebx, ebx
je 0x5072f8
push ebx
push edi
call fcn.004eddc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret