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

Disassembly:
sub esp, 0xb4
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov eax, dword [edi]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x54], eax
cmp dword [edi + 0x40], ebx
jne 0x520787
cmp byte [eax + 0x41], bl
jne 0x520787
mov eax, dword [esp + 0xc8]
push ebp
push edi
call fcn.004f1bc0
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
cmp ebp, ebx
je 0x520786
mov esi, dword [ebp + 0x40]
mov ecx, dword [edi]
call fcn.004c86c0
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x60]
push eax
push ecx
push 0x6e
mov edx, ebp
mov eax, edi
call fcn.004c8d50
xor edx, edx
cmp dword [ebp + 0xc], ebx
mov dword [esp + 0x70], eax
setne dl
push ebp
mov eax, edi
mov dword [esp + 0x6c], edx
call fcn.005043f0
add esp, 0x10
test eax, eax
jne 0x520786
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebp
mov eax, edi
call fcn.004e50b0
add esp, 4
test eax, eax
jne 0x520786
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0xcc]
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov edx, dword [edi + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
inc eax
test byte [ebp + 0x2a], 0x20
mov dword [esp + 0x6c], eax
jne 0x51f0bd
mov dword [esp + 0x24], ebx
jmp 0x51f0c8
mov eax, ebp
call fcn.004c7600
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, ebx
je 0x51f10d
mov esi, dword [esp + 0xc8]
jmp 0x51f0e0
mov ecx, dword [eax + 0x38]
and cl, 3
cmp cl, 2
jne 0x51f0ff
cmp dword [esp + 0x24], ebx
je 0x51f0ff
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x20], edx
mov dword [ecx + 0x38], edx
inc dword [esi + 0x44]
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x44]
inc edi
cmp eax, ebx
jne 0x51f0e0
movsx edx, word [ebp + 0x22]
mov esi, dword [esp + 0x58]
add edx, edi
lea eax, [edi + edx*4 + 2]
push ebx
push eax
call fcn.004cb940
add esp, 8
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x520786
movsx ecx, word [ebp + 0x22]
mov edx, eax
lea eax, [edx + ecx*4]
lea esi, [eax + edi*4]
mov dword [esp + 0x84], eax
lea eax, [edi + 1]
push eax
push 1
push esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x88], eax
call fcn.00412eb0
xor ecx, ecx
add esp, 0xc
mov byte [esi + edi + 1], bl
xor eax, eax
cmp cx, word [ebp + 0x22]
jge 0x51f184
lea esp, [esp]
mov edx, dword [esp + 0x28]
mov dword [edx + eax*4], 0xffffffff
movsx ecx, word [ebp + 0x22]
inc eax
cmp eax, ecx
jl 0x51f170
mov ecx, dword [esp + 0xd0]
cmp dword [ecx], ebx
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x10], ebx
jle 0x51f398
mov dword [esp + 0x34], ebx
jmp 0x51f200
mov edx, dword [esp + 0xd0]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + eax]
push edx
lea esi, [esp + 0xa8]
call fcn.004f0cd0
add esp, 4
test eax, eax
jne 0x520786
movsx eax, word [ebp + 0x22]
xor esi, esi
cmp eax, ebx
jle 0x51f2b0
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
mov edi, dword [ebp + 4]
lea eax, [edx + ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
push ecx
push edx
call fcn.004bf990
add esp, 8
test eax, eax
je 0x51f274
movsx eax, word [ebp + 0x22]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x51f252
jmp 0x51f2b0
movsx eax, word [ebp + 0x20]
cmp esi, eax
jne 0x51f28d
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov byte [esp + 0x17], 1
mov dword [esp + 0x54], edx
jmp 0x51f2a5
cmp dword [esp + 0x24], ebx
je 0x51f2a5
mov eax, dword [ebp + 4]
lea ecx, [esi + esi*2]
test byte [eax + ecx*8 + 0x17], 1
je 0x51f2a5
mov byte [esp + 0x1f], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [eax + esi*4], edx
movsx ecx, word [ebp + 0x22]
cmp esi, ecx
jl 0x51f326
cmp dword [esp + 0x24], ebx
jne 0x51f3b2
mov edx, dword [esp + 0xd0]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + eax + 4]
lea edi, [ecx + eax]
push str._ROWID_
push esi
call fcn.004bf990
add esp, 8
test eax, eax
je 0x51f311
push str.ROWID
push esi
call fcn.004bf990
add esp, 8
test eax, eax
je 0x51f311
push 0x570f10
push esi
call fcn.004bf990
add esp, 8
test eax, eax
jne 0x51f3b2
mov edx, dword [edi]
or esi, 0xffffffff
mov byte [esp + 0x17], 1
mov dword [esp + 0x54], edx
mov eax, str.ROWID
jmp 0x51f33a
cmp esi, ebx
jge 0x51f331
mov eax, str.ROWID
jmp 0x51f33a
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*2]
mov eax, dword [ecx + eax*8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 0x10]
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [esp + 0xd4]
push 0x17
call fcn.004e4090
add esp, 0x10
cmp eax, 1
je 0x520786
cmp eax, 2
jne 0x51f37b
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi*4], 0xffffffff
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xd0]
add dword [esp + 0x34], 0x18
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x10], eax
jl 0x51f200
mov al, byte [esp + 0x1f]
add al, byte [esp + 0x17]
test byte [ebp + 0x2a], 0x10
mov byte [esp + 0x34], al
je 0x51f3e5
or ecx, 0xffffffff
or edx, 0xffffffff
jmp 0x51f3e9
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0xc8]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*8 + 4]
push eax
push str.no_such_column:__s
call fcn.004e0360
add esp, 8
mov byte [edi + 0x11], 1
jmp 0x520786
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x4c], edx
movzx eax, byte [esp + 0x34]
push eax
mov dword [esp + 0x50], eax
push ebp
mov eax, edi
call fcn.004c8450
mov ebp, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x51f4bd
lea esp, [esp]
cmp byte [esp + 0x34], bl
jne 0x51f489
cmp dword [esp + 0x50], ebx
jne 0x51f489
cmp dword [ebp + 0x24], ebx
jne 0x51f489
cmp ebp, dword [esp + 0x24]
je 0x51f489
movzx eax, word [ebp + 0x32]
xor edx, edx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], edx
jle 0x51f493
mov esi, dword [ebp + 4]
lea ebx, [ebx]
movzx edx, word [esi]
cmp dx, bx
jl 0x51f489
mov edi, dword [esp + 0x28]
movsx edx, dx
cmp dword [edi + edx*4], ebx
mov edi, dword [esp + 0xc8]
jge 0x51f489
inc ecx
add esi, 2
cmp ecx, eax
jl 0x51f460
mov edx, dword [esp + 0x38]
jmp 0x51f493
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
cmp edx, ebx
jne 0x51f49f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
mov byte [ecx + eax + 1], bl
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov dword [ecx + eax*4], edx
mov ebp, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x10], eax
cmp ebp, ebx
jne 0x51f430
mov edi, dword [esp + 0xc8]
mov ebp, dword [edi + 8]
cmp ebp, ebx
jne 0x51f581
mov esi, dword [edi]
push ebx
push 0xd0
call fcn.004cb940
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x51f53d
push 0xd0
push ebx
push ebp
call fcn.00412eb0
mov dword [ebp], esi
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, ebx
je 0x51f501
mov dword [eax + 0x30], ebp
mov edx, dword [esi + 4]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x30], ebx
mov dword [esi + 4], ebp
mov dword [ebp + 0x28], 0x26bceaa5
mov dword [ebp + 0x18], edi
mov dword [edi + 8], ebp
cmp ebp, ebx
je 0x51f565
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x51f541
push ebx
push ebx
push ebx
push 0x9f
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51f565
xor ebp, ebp
jmp 0x51f517
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x9f
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [edi + 0x19c], ebx
jne 0x51f579
mov edx, dword [edi]
test byte [edx + 0x3c], 8
jne 0x51f579
mov byte [edi + 0x17], 1
cmp ebp, ebx
je 0x520786
cmp byte [edi + 0x12], bl
jne 0x51f58a
or dword [ebp + 0x58], 4
mov eax, dword [edi + 0x19c]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x51f59e
mov dword [esp + 0x10], edi
mov eax, edi
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 0x150]
mov esi, 1
shl esi, cl
test edx, esi
jne 0x51f5e4
mov ecx, esi
or ecx, edx
mov edx, dword [eax]
mov dword [eax + 0x150], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [edx + 0x10]
shl ecx, 4
mov ecx, dword [edx + ecx + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 0x154], edx
cmp ecx, 1
jne 0x51f5e4
call fcn.00508a60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
or dword [eax + 0x14c], esi
or byte [eax + 0x14], 1
test byte [ecx + 0x2a], 0x10
jne 0x51f667
mov eax, dword [edi + 0x48]
inc eax
mov dword [esp + 0x3c], eax
inc eax
mov dword [edi + 0x48], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], eax
cmp byte [esp + 0x1f], bl
jne 0x51f622
cmp dword [esp + 0x64], ebx
jne 0x51f622
cmp dword [esp + 0x50], ebx
je 0x51f635
lea edx, [eax + 1]
mov dword [esp + 0x8c], edx
movsx edx, word [ecx + 0x22]
add edx, eax
mov dword [edi + 0x48], edx
cmp byte [esp + 0x34], bl
jne 0x51f647
cmp dword [esp + 0x64], ebx
jne 0x51f647
cmp dword [esp + 0x50], ebx
je 0x51f651
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x48]
lea edx, [eax + 1]
mov dword [esp + 0x88], edx
movsx edx, word [ecx + 0x22]
add edx, eax
mov dword [edi + 0x48], edx
cmp dword [esp + 0x5c], ebx
je 0x51f6a0
mov eax, dword [edi + 0x1ec]
mov edx, dword [ecx]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
push eax
mov dword [edi + 0x1ec], edx
mov edx, dword [esp + 0xd8]
push edx
push ecx
push edi
mov dword [esp + 0xa8], edi
call fcn.005158a0
add esp, 0x10
mov eax, dword [esp + 0xd4]
push eax
lea esi, [esp + 0xa8]
call fcn.004f0cd0
add esp, 4
test eax, eax
jne 0x520786
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x2a]
test al, 0x10
je 0x51f70a
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0xdc]
push eax
mov eax, dword [esp + 0xdc]
push edx
push ecx
mov ecx, dword [esp + 0xe0]
push eax
push ecx
call fcn.0051d380
add esp, 0x20
jmp 0x520786
test al, 0x20
jne 0x51f7b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebx
push 0x1a
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0xe0]
push 4
push ebx
push ebx
push edx
push eax
push ecx
call fcn.00509db0
mov esi, eax
add esp, 0x30
cmp esi, ebx
je 0x520786
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x30]
movzx edi, byte [esi + 0x26]
mov eax, dword [esi + 0x40]
push ebx
push ecx
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x28]
push edx
push 0x69
push ebp
mov dword [esp + 0xb4], eax
mov dword [esp + 0x58], edi
call fcn.004cf760
add esp, 0x14
cmp edi, ebx
jne 0x51f7aa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
push 0x82
push ebp
call fcn.004cf760
add esp, 0x14
push esi
jmp 0x51f931
mov edx, dword [esp + 0x24]
movzx ecx, word [edx + 0x32]
mov esi, dword [esp + 0xc8]
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
movsx edi, cx
lea eax, [edi + eax + 1]
push ebx
push edx
mov dword [esi + 0x48], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x44]
push ebx
mov dword [esp + 0x84], eax
inc eax
push 0x1a
push ebp
mov dword [esp + 0x24], edx
mov dword [esi + 0x44], eax
call fcn.004cf760
mov eax, dword [esp + 0x8c]
push ebx
push edi
push eax
push 0x3a
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xb8], eax
mov eax, esi
call fcn.004f8750
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xfc]
mov eax, dword [esp + 0xf4]
push ecx
push 4
push ebx
push ebx
push edx
push eax
push esi
call fcn.00509db0
add esp, 0x44
mov dword [esp + 0x38], eax
cmp eax, ebx
je 0x520786
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
movzx eax, byte [eax + 0x26]
xor esi, esi
cmp edi, ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x44], eax
jle 0x51f89a
jmp 0x51f870
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea eax, [ecx + esi]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x20]
movsx ecx, word [ecx + esi*2]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebp
call fcn.004f1150
inc esi
add esp, 0xc
cmp esi, edi
jl 0x51f870
cmp dword [esp + 0x44], ebx
je 0x51f8e7
mov eax, dword [esp + 0x90]
cmp eax, dword [ebp + 0x20]
jge 0x51f8d9
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
add esp, 4
mov byte [esi], 0xa1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], edi
mov dword [esp + 0x40], eax
jmp 0x51f92c
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x24]
push ecx
call fcn.004d8b90
mov edx, dword [esp + 0x44]
push edx
mov esi, eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x32
push ebp
call fcn.004cf760
push edi
push ebp
mov edi, esi
call fcn.004cfc30
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x98]
push ebx
push ecx
push edx
push 0x70
push ebp
call fcn.004cf760
add esp, 0x34
mov eax, dword [esp + 0x38]
push eax
call fcn.004d4a90
mov ecx, dword [esp + 0x5c]
add esp, 4
test byte [ecx + 0x18], 0x80
je 0x51f96d
mov eax, dword [esp + 0xc8]
cmp dword [eax + 0x1a0], ebx
jne 0x51f96d
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
push ebx
push eax
push ebx
push 0x17
push ebp
mov dword [esp + 0x94], eax
call fcn.004cf760
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x70]
lea edx, [eax + 1]
mov dword [ecx + 0x70], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], eax
test eax, edx
jne 0x51f9af
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x74]
mov esi, dword [eax]
push ebx
push ecx
call fcn.004cbab0
mov edx, dword [esp + 0x18]
mov dword [edx + 0x74], eax
mov eax, dword [esp + 0x40]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x74]
cmp ecx, ebx
je 0x51f9bd
mov dword [ecx + eax*4], 0xffffffff
or edi, 0xffffffff
sub edi, eax
mov dword [esp + 0x38], edi
cmp dword [esp + 0x5c], ebx
jne 0x51fa5c
mov ecx, 5
cmp dword [esp + 0xd8], ecx
jne 0x51f9f4
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x68]
push eax
push 1
push esi
call fcn.00412eb0
add esp, 0xc
jmp 0x51fa10
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
cmp eax, ebx
je 0x51fa0c
nop
cmp byte [eax + 0x36], cl
je 0x51f9de
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x51fa00
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x44], ebx
je 0x51fa3a
mov eax, dword [esp + 0x9c]
cmp eax, ebx
jl 0x51fa28
sub eax, dword [esp + 0x2c]
mov byte [eax + esi], bl
mov eax, dword [esp + 0xa0]
cmp eax, ebx
jl 0x51fa3a
sub eax, dword [esp + 0x2c]
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc8]
push ebx
push ebx
push esi
push ecx
push ebx
push 0x38
push edx
push eax
call fcn.004f9dd0
add esp, 0x20
jmp 0x51fa60
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x44], ebx
je 0x51faee
sub esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
cmp byte [esi + eax], bl
je 0x51fa94
cmp dword [esp + 0x5c], ebx
jne 0x51fa94
mov ecx, dword [esp + 0x74]
push ecx
push eax
mov eax, dword [esp + 0x48]
push 0x46
push ebp
mov ecx, edi
call fcn.004d6580
add esp, 0x10
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x24], ebx
jne 0x51faa6
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x51fac5
push ebx
push edi
push ecx
push 0x4c
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51fbc5
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x4c
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x51fbc5
cmp dword [esp + 0x24], ebx
je 0x51fb99
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x70]
lea edx, [eax + 1]
mov dword [ecx + 0x70], edx
lea edx, [eax - 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x7c], eax
test eax, edx
jne 0x51fb41
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x74]
mov esi, dword [eax]
push ebx
push ecx
call fcn.004cbab0
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [edx + 0x74], eax
mov eax, dword [esp + 0x84]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x74]
cmp ecx, ebx
je 0x51fb4f
mov dword [ecx + eax*4], 0xffffffff
push ebx
push edi
mov edi, dword [esp + 0x80]
push edi
or esi, 0xffffffff
sub esi, eax
push 0x6e
push ebp
mov dword [esp + 0x40], esi
call fcn.004cf760
mov eax, dword [esp + 0x54]
push ebx
push eax
push edi
push 0x67
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x48]
push ebx
push ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x70]
push 0x46
push ebp
mov ecx, esi
call fcn.004d6580
add esp, 0x38
jmp 0x51fbc5
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push esi
push edi
push edx
push 0x83
push ebp
call fcn.004cf760
push esi
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
push eax
push 0x4a
push ebp
call fcn.004cf760
add esp, 0x28
cmp byte [esp + 0x17], bl
je 0x51fc64
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x51fbf5
cmp byte [eax], 0x9d
jne 0x51fbf5
mov esi, dword [esp + 0x48]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 8]
push ebx
push esi
push ecx
push 0x1f
push eax
jmp 0x51fc1c
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0xc8]
push esi
push eax
push edi
call fcn.0051ab60
add esp, 0xc
cmp eax, esi
je 0x51fc24
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x51fc24
push ebx
push esi
push eax
push 0x20
push ecx
call fcn.004cf760
add esp, 0x14
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x51fc40
push ebx
push ebx
push esi
push 0x27
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51fc64
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x27
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp byte [esp + 0x1f], bl
jne 0x51fd2f
cmp dword [esp + 0x50], ebx
jne 0x51fd39
cmp dword [esp + 0x64], ebx
je 0x51fe10
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc8]
push ecx
push esi
push 3
push ebx
push edx
push eax
mov eax, dword [esp + 0x7c]
call fcn.004c8e30
or dword [esp + 0x6c], eax
xor ecx, ecx
add esp, 0x18
xor edi, edi
cmp cx, word [esi + 0x22]
jge 0x51fdb4
mov dword [esp + 0x3c], ebx
jmp 0x51fcd0
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x51fd87
cmp edi, 0x20
jge 0x51fcf3
mov edx, 1
mov ecx, edi
shl edx, cl
test eax, edx
jne 0x51fd87
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
test byte [eax + ecx + 0x17], 1
jne 0x51fd87
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x51fd57
mov eax, dword [esp + 0x8c]
push ebx
lea ecx, [edi + eax]
push ecx
push ebx
push 0x1a
mov esi, ebp
call fcn.004cf720
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x51fda2
cmp dword [esp + 0x50], ebx
je 0x51fc82
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc8]
push edx
push eax
call fcn.004e6ae0
add esp, 8
mov dword [esp + 0x54], eax
jmp 0x51fc86
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x8c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea ecx, [edi + edx]
mov byte [eax], 0x1a
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x51fda2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x8c]
push ecx
push esi
lea eax, [edi + edx]
push ebp
mov ecx, edi
call fcn.004f1150
add esp, 0xc
movsx edx, word [esi + 0x22]
add dword [esp + 0x3c], 0x18
inc edi
cmp edi, edx
jl 0x51fcd0
cmp byte [esp + 0x17], bl
jne 0x51fe10
cmp dword [esp + 0x24], ebx
jne 0x51fe10
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x51fde4
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
push ebx
push edx
push eax
push 0x1f
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51fe10
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x48]
mov byte [eax], 0x1f
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0x68]
push esi
push 1
push 1
push ecx
push edx
call fcn.004c8e30
mov dword [esp + 0xa8], eax
xor eax, eax
add esp, 0x18
cmp ax, word [esi + 0x22]
mov dword [esp + 0x10], ebx
jge 0x520019
mov edi, dword [esp + 0x88]
jmp 0x51fe60
mov edx, dword [esp + 0x18]
movsx eax, word [edx + 0x20]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x51fe93
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x51ff78
push ebx
push edi
push ebx
push 0x1a
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51ffff
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ecx*4]
cmp eax, ebx
jl 0x51ff3a
mov edx, dword [esp + 0xd0]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*8]
cmp eax, ebx
je 0x51ff10
cmp byte [eax], 0x9d
jne 0x51ff10
mov ecx, dword [esp + 0xc8]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 0x18]
cmp dword [esi + 0x54], ecx
jg 0x51fee7
push ebx
push edi
push edx
push 0x1f
mov esi, eax
call fcn.004cf720
add esp, 0x10
jmp 0x51ffff
lea esi, [ecx + 1]
mov dword [eax + 0x20], esi
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov byte [eax], 0x1f
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x51ffff
mov esi, dword [esp + 0xc8]
push edi
push eax
push esi
call fcn.0051ab60
add esp, 0xc
cmp eax, edi
je 0x51ffff
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x51ffff
jmp 0x51ffbf
test dword [esp + 0x60], 1
je 0x51ff9e
cmp ecx, 0x1f
jg 0x51ff9e
mov eax, 1
shl eax, cl
test dword [esp + 0x90], eax
jne 0x51ff9e
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x51ff78
push ebx
push edi
push ebx
push 0x1a
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51ffff
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x1a
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x51ffff
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xc8]
push ebx
push edi
push eax
push ecx
push edx
mov eax, esi
call fcn.004f11e0
add esp, 0x14
cmp eax, edi
je 0x51ffff
mov ecx, dword [esi + 8]
mov esi, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [esi + 0x54], edx
jg 0x51ffdb
push ebx
push edi
push eax
push 0x20
mov esi, ecx
call fcn.004cf720
add esp, 0x10
jmp 0x51ffff
lea esi, [edx + 1]
mov dword [ecx + 0x20], esi
mov ecx, dword [ecx + 4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
mov byte [ecx + 1], bl
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 4], eax
mov byte [ecx + 3], bl
mov byte [ecx], 0x20
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
movsx ecx, word [edx + 0x22]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51fe60
test byte [esp + 0x60], 1
je 0x5201aa
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x18]
push edx
push ebp
call fcn.004d8c40
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xd8]
push esi
push eax
mov eax, dword [esp + 0x74]
push edi
push ecx
mov ecx, dword [esp + 0xe0]
push 1
push edx
push 0x6e
push eax
push ecx
call fcn.00520ec0
mov edx, dword [ebp + 0x18]
add esp, 0x2c
cmp dword [esp + 0x24], ebx
je 0x52011a
mov ecx, dword [ebp + 0x20]
cmp dword [edx + 0x54], ecx
jg 0x52009e
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
push eax
mov ecx, esi
push ecx
push edx
push 0x46
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5200cc
lea eax, [ecx + 1]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov byte [eax], 0x46
mov byte [eax + 3], bl
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, ecx
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
cmp edx, ebx
je 0x520106
cmp byte [ecx + 0x41], bl
jne 0x520106
cmp eax, ebx
jge 0x5200e3
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
mov ecx, dword [esp + 0x78]
add esp, 4
mov dword [esi + 0x10], ecx
mov byte [esi + 1], 0xf2
jmp 0x520167
push ecx
mov ecx, dword [esp + 0x78]
mov eax, 0xfffffff2
call fcn.004cf9f0
add esp, 4
jmp 0x520167
mov eax, dword [ebp + 0x20]
cmp dword [edx + 0x54], eax
jg 0x52013f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push 0x4a
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x520167
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x4a
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [esp + 0x18]
xor edx, edx
xor esi, esi
cmp dx, word [edi + 0x22]
jge 0x5201aa
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], ebx
jge 0x5201a1
movsx ecx, word [edi + 0x20]
cmp esi, ecx
je 0x5201a1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x88]
push ecx
push edi
lea eax, [esi + edx]
push ebp
mov ecx, esi
call fcn.004f1150
add esp, 0xc
movsx edx, word [edi + 0x22]
inc esi
cmp esi, edx
jl 0x520175
cmp dword [esp + 0x5c], ebx
jne 0x520479
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xd8]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x94]
push esi
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0xe4]
push edi
push eax
push ecx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x88], ebx
call fcn.0051bf70
add esp, 0x2c
cmp dword [esp + 0x50], ebx
je 0x52022e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xcc]
push ecx
push ebx
push esi
push edx
push eax
call fcn.0050f1a0
add esp, 0x18
cmp dword [esp + 0x5c], ebx
jne 0x52023e
cmp byte [esp + 0x34], bl
je 0x52033e
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [esp + 0x24], ebx
je 0x5202f8
cmp dword [edx + 0x54], ecx
jg 0x52026e
mov eax, dword [esp + 0x40]
push eax
push ebx
push edi
push 0x46
mov esi, ebp
call fcn.004cf720
add esp, 0x10
mov dword [esp + 0x60], eax
mov esi, eax
jmp 0x52029c
lea edx, [ecx + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x40]
mov esi, ecx
mov byte [eax], 0x46
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x60], esi
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, esi
cmp edx, ebx
je 0x5202e0
cmp byte [ecx + 0x41], bl
jne 0x5202e0
cmp esi, ebx
jge 0x5202b5
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x10], ecx
mov byte [esi + 1], 0xf2
mov esi, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x52033e
push ecx
mov ecx, dword [esp + 0x78]
mov eax, 0xfffffff2
call fcn.004cf9f0
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x52033e
cmp dword [edx + 0x54], ecx
jg 0x520316
mov eax, dword [esp + 0x30]
push eax
push ebx
push edi
push 0x4a
mov esi, ebp
call fcn.004cf720
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x52033e
lea edx, [ecx + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x4a
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0xc8]
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004fea40
add esp, 0x14
cmp dword [esp + 0x50], ebx
jne 0x520376
cmp byte [esp + 0x34], bl
jne 0x520376
cmp dword [esp + 0x24], ebx
je 0x5203ba
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x520396
push ebx
push ebx
push edi
push 0x63
mov esi, ebp
call fcn.004cf720
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x5203ba
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x63
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x5c], ebx
jne 0x5203c6
cmp byte [esp + 0x34], bl
je 0x5203f9
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
dec edx
mov dword [eax + 0x5c], edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, dword [ebp + 0x20]
jge 0x5203de
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x41], bl
je 0x5203ed
mov eax, 0x5a2838
jmp 0x5203f6
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
cmp dword [esp + 0x50], ebx
je 0x520420
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edx
push ebx
push esi
push eax
call fcn.0050f1a0
add esp, 0x18
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push ebx
push ebx
push 1
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push eax
push edi
push esi
push ecx
call fcn.004dd1a0
add esp, 0x24
cmp dword [esp + 0x50], ebx
je 0x520479
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xd0]
push ecx
push edx
push eax
call fcn.004e72b0
add esp, 0x14
mov ecx, dword [esp + 0x58]
test byte [ecx + 0x18], 0x80
mov edi, dword [esp + 0x2c]
je 0x5204e9
mov edx, dword [esp + 0xc8]
cmp dword [edx + 0x1a0], ebx
jne 0x5204e9
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x5204ba
mov edx, dword [esp + 0x80]
push ebx
push 1
push edx
push 0x26
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5204e9
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x26
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edi
push edx
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0xd8]
push 2
push edx
push 0x6e
push eax
push ecx
call fcn.00520ec0
add esp, 0x24
cmp dword [esp + 0x44], ebx
jne 0x5205cf
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0x24], ebx
je 0x520592
mov eax, dword [ecx + 0x74]
cmp eax, ebx
je 0x520545
lea edx, [edi*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x520570
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
push ebx
push edx
push eax
push 8
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5205cf
lea ecx, [eax + 1]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x78]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x70]
mov byte [eax], 8
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x5205c3
mov eax, dword [ebp + 0x20]
cmp dword [ecx + 0x54], eax
jg 0x5205ab
push ebx
push edi
push ebx
push 0xe
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5205cf
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x20], edx
mov byte [eax], 0xe
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov byte [eax + 1], bl
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov byte [eax + 3], bl
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
cmp eax, ebx
je 0x5205eb
mov edx, dword [esp + 0x38]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
cmp eax, ebx
je 0x52066f
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
inc edx
mov dword [esp + 0x4c], edx
mov ecx, eax
mov eax, dword [esp + 0x4c]
cmp byte [eax], bl
je 0x52065f
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x52063b
push ebx
push ebx
push edi
push 0x3e
mov esi, ebp
call fcn.004cf720
mov ecx, dword [esp + 0x80]
add esp, 0x10
jmp 0x52065f
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x3e
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ecx + 0x14]
inc dword [esp + 0x4c]
inc edi
mov dword [esp + 0x70], ecx
cmp ecx, ebx
jne 0x520610
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x20], eax
jge 0x5206c1
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x520699
mov edx, dword [esp + 0x20]
push ebx
push ebx
push edx
push 0x3e
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5206c1
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x3e
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0xc8]
cmp byte [eax + 0x12], bl
jne 0x5206de
cmp dword [eax + 0x1a0], ebx
jne 0x5206de
push eax
call fcn.004f9b60
add esp, 4
mov edx, dword [esp + 0x58]
test byte [edx + 0x18], 0x80
je 0x520786
mov eax, dword [esp + 0xc8]
cmp dword [eax + 0x1a0], ebx
jne 0x520786
mov ecx, eax
cmp byte [ecx + 0x12], bl
jne 0x520786
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x52072e
mov eax, dword [esp + 0x80]
push ebx
push 1
push eax
push 0x22
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x52075d
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x22
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
push 1
push ebp
call fcn.004d6600
mov edx, dword [ebp]
add esp, 8
cmp byte [edx + 0x41], bl
jne 0x520786
mov ecx, dword [ebp + 0x10]
push ebx
push 1
push str.rows_updated
or eax, 0xffffffff
call fcn.004da840
add esp, 0xc
pop ebp
mov eax, dword [esp + 0x94]
cmp eax, ebx
je 0x52079f
mov ecx, dword [esp + 0x90]
mov dword [eax + 0x1ec], ecx
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x54]
cmp esi, ebx
je 0x520843
cmp edi, ebx
je 0x5207ef
cmp dword [edi + 0x208], ebx
je 0x5207c9
mov eax, esi
mov ecx, edi
call fcn.004bf640
jmp 0x520843
cmp esi, dword [edi + 0x114]
jb 0x5207ef
cmp esi, dword [edi + 0x118]
jae 0x5207ef
mov edx, dword [edi + 0x110]
mov dword [esi], edx
dec dword [edi + 0xfc]
mov dword [edi + 0x110], esi
jmp 0x520843
cmp dword [0x59bf10], ebx
je 0x520839
mov eax, dword [0x5a2d00]
cmp eax, ebx
je 0x52080a
push eax
call dword [0x59bf64]
add esp, 4
push esi
call dword [0x59bf40]
sub dword [0x5a2b48], eax
dec dword [0x5a2b6c]
push esi
call dword [0x59bf38]
mov eax, dword [0x5a2d00]
add esp, 8
cmp eax, ebx
je 0x520843
push eax
call dword [0x59bf6c]
jmp 0x520840
push esi
call dword [0x59bf38]
add esp, 4
mov eax, dword [esp + 0xc8]
push eax
mov eax, edi
call fcn.004c7a60
mov ecx, dword [esp + 0xd0]
push ecx
push edi
call fcn.004d19a0
mov edx, dword [esp + 0xdc]
push edx
push edi
call fcn.004d15b0
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0xb4
ret