Function at 0x504cb0
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 0x506a9a
cmp byte [eax + 0x51], 0
jne 0x506a9a
push ecx
push esi
call fcn.00503aa0
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x506a97
push dword [ebx + 0x48]
push dword [esi]
call fcn.00500560
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 0x7f
push ebx
push esi
call fcn.00504900
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
call fcn.00512f20
add esp, 0x24
test eax, eax
jne 0x506a97
push dword [ebp - 0xa4]
push ebx
push esi
call fcn.004f66a0
add esp, 0xc
test eax, eax
jne 0x506a97
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 0x504dcc
mov dword [ebp - 0x2c], 0
jmp 0x504ddb
push ebx
call fcn.004fdef0
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 0x504e14
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 0x504df0
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 0x504e30
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.004e8630
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x506a97
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 0x504eb0
nop
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x504ea0
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 0x504f20
cmp dword [esi + 0x74], eax
jne 0x504f0c
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x504f0c
mov byte [esi + 0x17], 1
push esi
call fcn.00507e50
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x5051f4
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 0x5050fa
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
nop
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.004fef20
add esp, 8
test eax, eax
jne 0x5051f1
mov edx, dword [ebp - 8]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x504fe2
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 0x504fb8
test ecx, ecx
jne 0x504fca
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x50504e
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 0x504fe2
movzx eax, byte [eax + 0x581e78]
movzx ecx, byte [ecx + 0x581e78]
sub ecx, eax
jne 0x504fcd
inc edx
jmp 0x504f80
mov edx, dword [ebp - 8]
inc edi
mov esi, dword [ebp - 0x20]
add ebx, 0x14
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x504f70
mov ebx, dword [ebp - 0x4c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x505095
cmp dword [ebp - 0x2c], 0
jne 0x505213
mov esi, dword [esi + 4]
push str._ROWID_
push esi
call fcn.00504330
add esp, 8
test eax, eax
je 0x505035
push str.ROWID
push esi
call fcn.00504330
add esp, 8
test eax, eax
je 0x505035
push 0x5886c8
push esi
call fcn.00504330
add esp, 8
test eax, eax
jne 0x505213
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 0x5050a9
cmp dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x74]
je 0x505076
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 1
je 0x505076
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 0x504fe2
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 0x60
jne 0x5051de
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov dword [eax + edi*4], ebx
jmp 0x504fe2
test edi, edi
jns 0x5050a0
mov edx, str.ROWID
jmp 0x5050a9
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.004e1320
add esp, 0x14
cmp eax, 1
je 0x5051f1
cmp eax, 2
jne 0x5050e2
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 0x504f40
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 0x5051d0
movzx eax, word [edx + 0x2a]
nop word [eax + eax]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp cx, ax
jge 0x5051cd
xor edi, edi
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + esi*4], 0
jge 0x5051b0
mov eax, dword [edx + 4]
test byte [eax + edi + 0x10], 0x60
je 0x5051b0
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], 0x4c1a40
test eax, eax
je 0x50518e
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.005239c0
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 9], 0
mov ax, word [ebp - 0xc0]
jne 0x50519f
and ax, word [ebp - 0x7c]
test ax, ax
je 0x5051b0
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 0x505131
mov eax, ecx
test ebx, ebx
jne 0x505120
mov bl, byte [ebp - 0x5c]
cmp dword [edx + 0x38], 0
je 0x505234
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x505242
push dword [ebp - 0x7c]
push str.cannot_UPDATE_generated_column___s_
push dword [ebp + 8]
call fcn.004ea2c0
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x1f8], 0
je 0x506a04
push edi
push eax
call fcn.004d21e0
add esp, 8
jmp 0x506a97
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.004ea2c0
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x5051f1
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.004f0f70
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 0x5053dd
nop
cmp byte [ebp - 0x5c], 0
jne 0x505450
cmp ebx, 1
jg 0x505450
cmp esi, dword [ebp - 0x2c]
je 0x505450
mov eax, dword [esi + 0x24]
test eax, eax
je 0x505310
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], 0x4c1a40
mov dword [ebp - 0xbc], ecx
call fcn.005239c0
mov ax, word [ebp - 0xc0]
add esp, 8
cmp byte [ebp - 9], 0
jne 0x505307
mov ecx, 0xfffd
and ax, cx
test ax, ax
jne 0x505450
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], ecx
cmp ax, word [esi + 0x32]
jae 0x5053ba
xor ebx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x50533f
cwde
mov eax, dword [ecx + eax*4]
not eax
shr eax, 0x1f
jmp 0x5053a3
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], 0x4c1a40
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x505386
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.005239c0
add esp, 8
cmp byte [ebp - 9], 0
mov cx, word [ebp - 0xdc]
jne 0x50539b
mov eax, 0xfffd
and cx, ax
xor eax, eax
test cx, cx
setne al
test eax, eax
jne 0x505425
movzx eax, word [esi + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x505325
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 0x505290
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 0x505407
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 0x505417
mov eax, dword [ebp - 4]
or dword [eax + 0x98], 0x20
cmp dword [ebp - 0x28], 0
jne 0x505470
test ebx, ebx
jne 0x505470
xor bl, bl
jmp 0x505472
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 0x505463
cmp byte [esi + 0x36], 5
jne 0x505463
mov dword [ebp - 0x58], 1
jmp 0x505463
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 0x5053c5
jmp 0x5053bd
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 0x5054a2
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x5054a2
push esi
call fcn.004f8ac0
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 0x505523
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 0x5054e6
test edx, edx
jne 0x5054e6
mov eax, dword [ebp - 0x20]
mov ecx, edi
test eax, eax
je 0x5054fb
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 0x505509
test edx, edx
jne 0x505509
test eax, eax
je 0x505514
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 0x505546
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 0x50555b
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 0x505576
push dword [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push esi
push ebx
call fcn.004f81b0
add esp, 0x18
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004fef20
add esp, 8
test eax, eax
jne 0x5069e5
cmp dword [esi + 0x38], eax
je 0x5055b6
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.0051d410
add esp, 0x20
jmp 0x5069e8
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 0x505640
cmp dword [ebx + 0x78], 0
jne 0x505640
cmp byte [ebx + 0x12], 0
jne 0x505640
cmp dword [ebp + 0x24], 0
jne 0x505640
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 0x50560c
push 0
push edx
push 0
push 0x45
push ebx
call fcn.004cf440
add esp, 0x14
jmp 0x505643
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 0x505643
mov ebx, dword [ebp - 4]
test byte [esi + 0x24], 0x80
jne 0x505711
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x50566a
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0x48
push ebx
call fcn.004cf440
add esp, 0x14
jmp 0x50569b
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 0x50582f
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.004ed880
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 0x505995
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x5058f1
push 0
push dword [ebp - 0x14]
push edx
push 0x7f
push ebx
call fcn.004cf440
mov edx, dword [ebp - 0x14]
add esp, 0x14
jmp 0x505922
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 0x5056a8
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 0x50576a
push edx
push eax
push 0
push 0x48
push ebx
call fcn.004cf440
add esp, 0x14
jmp 0x50579b
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 0x5057c2
push 0
push esi
push dword [ebp - 0x40]
push 0x64
push ebx
call fcn.004cf440
add esp, 0x14
mov dword [ebp - 0xa0], eax
jmp 0x5057f0
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.004f6a80
mov edx, eax
add esp, 8
test edx, edx
je 0x505832
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x50581b
push edx
push 0xfffffffffffffff7
push eax
call fcn.004ccbe0
add esp, 0xc
jmp 0x505832
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 0x505832
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12], 0
mov eax, 0x1004
jne 0x50585b
cmp dword [ebp - 0x28], 0
jne 0x50585b
cmp dword [ebp - 0x20], 0
jne 0x50585b
cmp byte [ebp - 0x5c], 0
jne 0x50585b
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.005149e0
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x5069e5
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 0x5056df
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 0x5056df
test edi, edi
js 0x5056df
cmp edi, edx
je 0x5056df
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 0x5056df
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 0x505b6d
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 0x50595f
push esi
push edx
push dword [ebp - 0x30]
push 0x93
push ebx
call fcn.004cf440
add esp, 0x14
jmp 0x505b6d
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 0x505b6d
mov eax, dword [ebp - 0x78]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x5059ce
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.004eb060
mov ecx, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0x10]
add esp, 0x14
cmp esi, ebx
jl 0x5059a4
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x505a25
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x505a14
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp byte [edx + 0x51], 0
jne 0x505a14
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.004ccbe0
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 0x505b6a
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.004f4d20
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x505a56
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x48]
push 0x5b
push ecx
call fcn.004cf440
add esp, 0x14
mov edx, eax
jmp 0x505a89
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 0x505aa6
cmp ebx, 0xfffffff4
je 0x505af1
push esi
push ebx
push eax
call fcn.004ccbe0
add esp, 0xc
jmp 0x505af1
test edx, edx
jns 0x505aae
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 0x505ae5
cmp byte [eax + 1], 0
jne 0x505ae5
cmp ebx, 0xfffffffd
jne 0x505ad1
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
jmp 0x505af1
test esi, esi
je 0x505af1
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
cmp ebx, 0xfffffff4
jne 0x505af1
inc dword [esi + 0xc]
jmp 0x505af1
push ebx
push esi
push eax
push edx
call fcn.0051e0c0
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp dword [eax + 0x70], edx
jg 0x505b1a
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x83
push eax
call fcn.004cf440
mov esi, dword [ebp - 4]
add esp, 0x14
mov edx, eax
jmp 0x505b50
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 0x505b67
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 0x505ef0
cmp esi, 2
je 0x505b87
push dword [ebp - 0x74]
call fcn.005172a0
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x505c7d
mov ecx, dword [ebp - 0x3c]
xor esi, esi
test ecx, ecx
je 0x505bc2
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
test eax, eax
js 0x505bb2
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
test edi, edi
js 0x505bc2
mov eax, edi
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x505c2a
mov ecx, dword [ebp - 0x84]
xor eax, eax
test edi, edi
setns al
sub ecx, eax
test ecx, ecx
jle 0x505c2a
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x505bf7
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004cf440
add esp, 0x14
mov esi, eax
jmp 0x505c2a
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.004f88b0
add esp, 0x20
test esi, esi
je 0x505c74
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x505c60
mov eax, 0x5b8cd4
jmp 0x505c71
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 0x505d21
test eax, eax
jne 0x505cb3
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
je 0x505cb3
mov ebx, dword [ebp - 0x34]
cmp edi, eax
mov edi, dword [ebp - 4]
je 0x505cb9
push dword [ebp - 0x94]
push dword [ebp - 0x24]
push ebx
push eax
push 0x1d
push edi
call fcn.00507740
add esp, 0x18
jmp 0x505cb9
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
cmp esi, 1
je 0x505cca
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 0x505cf1
push 0
push ebx
push edx
push 0x32
push edi
call fcn.004cf440
add esp, 0x14
jmp 0x505ef3
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 0x505ef3
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 4]
je 0x505e55
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 0x505d58
mov edx, dword [ebp - 0x34]
push 0
push edx
push dword [ebp - 0x40]
push 0x25
push edi
call fcn.004cf440
add esp, 0x14
jmp 0x505d89
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 0x505db2
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x7e
push edi
call fcn.004cf440
add esp, 0x14
mov dword [ebp - 0x98], eax
jmp 0x505de3
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 0x505e01
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
push 0x1d
push edi
call fcn.004cf440
add esp, 0x14
mov edx, eax
jmp 0x505e31
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 0x505ef6
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 0x505ef6
mov ebx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ebx
jg 0x505e7d
mov edx, dword [ebp - 0x34]
push esi
push edx
push dword [ebp - 0x30]
push 0x2a
push edi
call fcn.004cf440
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x44], ebx
jmp 0x505eaa
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 0x505ec4
push esi
push ebx
push dword [ebp - 0x10]
push 0x20
push edi
call fcn.004cf440
add esp, 0x14
jmp 0x505ef3
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 0x505ef3
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp byte [ebp - 9], 0
je 0x505fd6
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x90]
push ebx
push esi
call fcn.004ec1b0
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp edi, eax
je 0x505f87
mov esi, dword [esi + 8]
test esi, esi
je 0x505f84
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 0x505f4b
push 0
push eax
push edi
push edx
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x505f81
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 0x505fa4
push 0
push 0
push eax
push 0xf
push edi
call fcn.004cf440
add esp, 0x14
jmp 0x505fd6
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 0x506022
cmp dword [ebp - 0x20], 0
jne 0x506028
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x50614b
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.005047d0
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 0x5060ee
xor edi, edi
jmp 0x50603b
cmp dword [ebp - 0x20], 0
je 0x505fed
push dword [ebp - 8]
push esi
call fcn.004f0e90
add esp, 8
mov ebx, eax
jmp 0x505fef
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.005044f0
movsx edx, ax
add esp, 8
add edx, dword [ebp - 0x9c]
cmp ebx, 0xffffffff
je 0x5060c5
cmp esi, 0x20
jge 0x506065
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x5060c5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x10], 1
jne 0x5060c5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x50608c
push 0
push edx
push 0
push 0x48
push eax
call fcn.004cf440
jmp 0x5060d5
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 0x5060d8
push edx
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004eb060
add esp, 0x14
mov eax, dword [ebp - 8]
inc esi
add edi, 0x14
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x506038
mov edi, dword [ebp - 4]
cmp byte [ebp - 9], 0
jne 0x506148
cmp dword [ebp - 0x2c], 0
jne 0x506148
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x506117
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x4d
push edi
call fcn.004cf440
add esp, 0x14
jmp 0x506148
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.005047d0
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 0x50630e
xor ecx, ecx
mov dword [ebp - 0x68], ecx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x5061ae
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x50629e
push 0
push esi
push 0
push 0x48
push edi
call fcn.004cf440
jmp 0x5062e7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0x10]
test al, 0x60
je 0x5061cc
test al, 0x20
lea eax, [esi - 1]
cmove eax, esi
mov esi, eax
jmp 0x5062ed
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x506274
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.004ec1b0
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x5062ea
mov edi, dword [edi + 8]
test edi, edi
je 0x5062ea
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 0x50623c
push 0
push esi
push eax
push edx
push edi
call fcn.004cf440
jmp 0x5062e7
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 0x5062ea
test dword [ebp - 0xa4], 1
je 0x5062cf
cmp ebx, 0x1f
jg 0x5062cf
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x5062cf
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x50619c
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 0x5062ed
push esi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.004eb060
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 0x506188
mov ecx, dword [ebp - 0x6c]
test byte [eax + 0x24], 0x60
je 0x506324
push eax
push ecx
push dword [ebp + 8]
call fcn.004e6e90
mov eax, dword [ebp - 8]
add esp, 0xc
test byte [ebp - 0xa4], 1
je 0x5064cf
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
push eax
push ebx
call fcn.005043e0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov esi, eax
test eax, eax
je 0x50638c
mov ebx, dword [ebp - 8]
cmp byte [esi + 8], 0x7f
jne 0x506382
cmp byte [esi + 9], 1
jne 0x506382
push dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.004c1980
add esp, 8
test eax, eax
je 0x506382
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp + 8]
call fcn.004e6230
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x506350
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
je 0x506438
cmp eax, edx
jg 0x5063b6
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x1d
push ebx
call fcn.004cf440
add esp, 0x14
mov edx, eax
jmp 0x5063e3
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 0x506400
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 0x5064b9
nop dword [eax]
mov eax, dword [ecx + 4]
movzx eax, word [ebx + eax + 0x10]
test al, 0x60
je 0x50647f
test al, 0x20
lea eax, [edi - 1]
cmove eax, edi
mov edi, eax
jmp 0x5064a2
cmp eax, edx
jg 0x506450
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x20
push ebx
call fcn.004cf440
add esp, 0x14
jmp 0x506400
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 0x506403
mov eax, dword [ebp - 0x18]
cmp dword [eax + esi*4], 0
jge 0x5064a2
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x5064a2
push edi
push esi
push edx
push ecx
push dword [ebp - 4]
call fcn.004eb060
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 0x506420
mov eax, dword [ebp - 0x6c]
test byte [ecx + 0x24], 0x60
mov esi, dword [ebp + 8]
je 0x5064d5
push ecx
push eax
push esi
call fcn.004e6e90
add esp, 0xc
jmp 0x5064d2
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x8c], 0
mov ebx, dword [ebp - 0x44]
jne 0x50673c
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.004f1140
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x50651f
cmp byte [ebp - 0x5c], 0
je 0x5065d4
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
je 0x506592
cmp eax, edx
jg 0x506546
push dword [ebp - 0x24]
push ebx
push edi
push 0x1d
push esi
call fcn.004cf440
add esp, 0x14
mov edx, eax
jmp 0x506573
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 0x5065d7
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 0x5065d7
cmp eax, edx
jg 0x5065a8
push dword [ebp - 0x14]
push ebx
push edi
push 0x20
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x5065d7
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 0x5065da
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x5065fb
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push 0
push edx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f0360
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.004f36d0
add esp, 0x18
cmp dword [ebp - 0xb4], 0
je 0x50663a
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506666
push 0
push 0
push dword [ebp - 0x10]
push 0x87
push esi
call fcn.004cf440
add esp, 0x14
mov edx, dword [ebp - 0x10]
cmp edi, 1
jg 0x50664c
cmp byte [ebp - 0x5c], 0
je 0x5066c9
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x50669a
push 0
push 0
push edx
push 0x7a
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x5066c9
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 0x50663d
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 0x5066ea
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call fcn.004f0360
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.004e6c70
add esp, 0x24
cmp dword [ebp - 0x20], 0
je 0x50673f
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004f02d0
add esp, 0x18
jmp 0x50673f
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 4]
test edx, edx
je 0x506798
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506766
push 0
push 1
push edx
push 0x52
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x506798
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 0x5067ea
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp byte [eax + 8], 0x7f
jne 0x5067da
cmp byte [eax + 9], 2
jne 0x5067da
push dword [ebp + 0x10]
push dword [eax + 0x10]
call fcn.004c1980
add esp, 8
test eax, eax
je 0x5067d7
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x28]
push esi
call fcn.004e6230
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x5067a5
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x3c]
cmp edi, 1
je 0x5068f2
cmp edi, 2
jne 0x506839
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x506820
push ebx
push esi
push ecx
call fcn.004db6e0
add esp, 0xc
push dword [ebp - 0x74]
call fcn.005172a0
add esp, 4
jmp 0x5068f2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x74]
mov dword [ecx + ebx*4], eax
call fcn.005172a0
add esp, 4
jmp 0x5068f2
cmp dword [ebp - 0x2c], 0
je 0x5068a9
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x506859
push ebx
push esi
push ecx
call fcn.004db6e0
add esp, 0xc
jmp 0x506862
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 0x506883
mov edx, dword [ebp - 0x98]
push 0
push edx
push dword [ebp - 0x40]
push 5
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x5068f2
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 0x5068e2
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5068c3
push 0
push ebx
push 0
push 0xb
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x5068f2
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 0x50690f
push edx
push esi
push ecx
call fcn.004db6e0
add esp, 0xc
jmp 0x506918
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 0x50693c
cmp dword [eax + 0x78], 0
jne 0x50693c
cmp dword [ebp + 0x24], 0
jne 0x50693c
cmp dword [eax + 0x70], 0
je 0x50693c
push eax
call fcn.004bdc80
add esp, 4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x5069e5
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x506964
push 0
push 1
push edx
push 0x50
push esi
call fcn.004cf440
add esp, 0x14
jmp 0x506993
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.00512440
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x51], 0
jne 0x5069e5
mov esi, dword [esi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x5069ba
cmp dword [esi + 0x18], 0
je 0x5069c3
push esi
call fcn.0051eec0
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 0x5051f4
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xf0], ecx
jmp 0x5051f4
cmp edi, dword [eax + 0x14c]
jae 0x506a42
cmp edi, dword [eax + 0x144]
jb 0x506a27
mov eax, dword [eax + 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x140], edi
jmp 0x506a97
cmp edi, dword [eax + 0x148]
jb 0x506a42
mov eax, dword [eax + 0x138]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x138], edi
jmp 0x506a97
cmp dword [0x5b2c38], 0
je 0x506a8d
mov eax, dword [0x5b8bb0]
test eax, eax
je 0x506a5e
push eax
call dword [0x5b2c88]
add esp, 4
push edi
call dword [0x5b2c64]
sub dword [0x5b8b50], eax
dec dword [0x5b8b74]
push edi
call dword [0x5b2c5c]
mov eax, dword [0x5b8bb0]
add esp, 8
test eax, eax
je 0x506a97
push eax
call dword [0x5b2c90]
jmp 0x506a94
push edi
call dword [0x5b2c5c]
add esp, 4
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
call fcn.005034e0
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x506aba
push eax
push edi
call fcn.004ca040
add esp, 8
test ebx, ebx
je 0x506ac8
push ebx
push edi
call fcn.004ed570
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret