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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x50], 0
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x4c], 0
push 8
push 0
lea ecx, [ebp - 0x158]
push ecx
call fcn.00572370
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x50caa3
jmp 0x50e4cc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0050a930
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x50cac1
jmp 0x50e4cc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00507150
add esp, 8
mov dword [ebp - 0xf4], eax
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x81
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050c430
add esp, 0x14
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 2
jne 0x50cb17
mov dword [ebp - 0x134], 1
jmp 0x50cb21
mov dword [ebp - 0x134], 0
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jle 0x50cb3f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xd4], edx
jmp 0x50cb49
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051f170
add esp, 8
test eax, eax
je 0x50cb6b
jmp 0x50e4cc
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f9170
add esp, 0xc
test eax, eax
je 0x50cb8b
jmp 0x50e4cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x50cbd2
mov dword [ebp - 0xd8], 0
jmp 0x50cbe4
mov eax, dword [ebp - 4]
push eax
call fcn.00504250
add esp, 4
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
jmp 0x50cc11
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], 0
je 0x50cc39
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x3c]
jne 0x50cc28
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
jmp 0x50cbff
cmp dword [ebp + 0x24], 0
je 0x50cc60
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x90]
mov dword [edx + 0x28], eax
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x34], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
add eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax*4 + 6]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004e8170
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x50cca1
jmp 0x50e4cc
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
lea edx, [ecx + eax*4 + 4]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00572370
add esp, 0xc
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov byte [edx + 1], 0
mov dword [ebp - 8], 0
jmp 0x50ccef
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x50cd0a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x50cce6
push 0x20
push 0
lea edx, [ebp - 0x178]
push edx
call fcn.00572370
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x160], 0x200
mov eax, dword [ebp + 8]
push eax
call fcn.004f6450
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x50cd5c
jmp 0x50e4cc
mov byte [ebp - 0x19], 0
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0xe], cl
mov dword [ebp - 8], 0
jmp 0x50cd78
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jge 0x50cfcf
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
call fcn.0050b750
add esp, 4
mov byte [ebp - 0x6d], al
cmp dword [ebp - 0x44], 0
jne 0x50cdc7
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
push ecx
lea edx, [ebp - 0x178]
push edx
call fcn.005057d0
add esp, 8
test eax, eax
je 0x50cdc7
jmp 0x50e4cc
mov dword [ebp - 0x24], 0
jmp 0x50cdd9
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 0x24], edx
jge 0x50cecf
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, byte [edx + eax + 0xa]
movzx ecx, byte [ebp - 0x6d]
cmp eax, ecx
jne 0x50ceca
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx]
push edx
call fcn.0050b6e0
add esp, 8
test eax, eax
jne 0x50ceca
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 0x24], ecx
jne 0x50ce5e
mov byte [ebp - 0xe], 1
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc8], edx
jmp 0x50cebc
cmp dword [ebp - 0x2c], 0
je 0x50ce80
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 1
je 0x50ce80
mov byte [ebp - 0x19], 1
jmp 0x50cebc
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x60
je 0x50cebc
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx]
push edx
push str.cannot_UPDATE_generated_column___s_
mov eax, dword [ebp + 8]
push eax
call fcn.004ead00
add esp, 0xc
jmp 0x50e4cc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
jmp 0x50cecf
jmp 0x50cdd0
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 0x24], edx
jl 0x50cf49
cmp dword [ebp - 0x2c], 0
jne 0x50cf20
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
call fcn.004f91e0
add esp, 4
test eax, eax
je 0x50cf20
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 0xe], 1
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc8], eax
jmp 0x50cf49
imul ecx, dword [ebp - 8], 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx + 0xc]
push eax
push str.no_such_column:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ead00
add esp, 0xc
mov edx, dword [ebp + 8]
mov byte [edx + 0x11], 1
jmp 0x50e4cc
cmp dword [ebp - 0x24], 0
jge 0x50cf5b
mov dword [ebp - 0xdc], str.ROWID
jmp 0x50cf70
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xf4]
shl ecx, 4
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 0x17
mov edx, dword [ebp + 8]
push edx
call fcn.004de440
add esp, 0x14
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 1
jne 0x50cfb4
jmp 0x50e4cc
cmp dword [ebp - 0xe0], 2
jne 0x50cfca
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x50cd6f
movzx edx, byte [ebp - 0xe]
movzx eax, byte [ebp - 0x19]
add edx, eax
mov byte [ebp - 0xd], dl
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x50d091
mov dword [ebp - 0xe4], 0
mov dword [ebp - 8], 0
jmp 0x50d007
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x50d084
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jl 0x50d021
jmp 0x50cffe
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x60
jne 0x50d039
jmp 0x50cffe
movzx eax, byte [ebp - 0xe]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
add edx, dword [eax + 4]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e5450
add esp, 8
push eax
call fcn.004f0500
add esp, 0xc
test eax, eax
je 0x50d07f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov dword [eax + edx*4], 0x1869f
mov dword [ebp - 0xe4], 1
jmp 0x50cffe
cmp dword [ebp - 0xe4], 0
jne 0x50cfeb
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x2b]
cmp edx, 1
jne 0x50d0b2
or eax, 0xffffffff
mov dword [ebp - 0x13c], 0xffffffff
mov dword [ebp - 0x138], eax
jmp 0x50d0bd
xorps xmm0, xmm0
movlpd qword [ebp - 0x13c], xmm0
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x138]
mov dword [eax + edx + 0x40], ecx
mov dword [eax + edx + 0x44], esi
movzx edx, byte [ebp - 0xd]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f2d80
add esp, 0x10
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x18], 5
jne 0x50d108
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
jmp 0x50d12c
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x3c], 0
je 0x50d26d
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x50d165
cmp dword [ebp - 0x48], 1
jg 0x50d165
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
je 0x50d165
movzx ecx, byte [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004c4040
add esp, 0xc
test eax, eax
je 0x50d1a4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 0x34]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x2c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
jmp 0x50d246
mov dword [ebp - 0x9c], 0
mov dword [ebp - 8], 0
jmp 0x50d1c0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x32]
cmp dword [ebp - 8], eax
jge 0x50d246
movzx ecx, byte [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004c3d40
add esp, 0x10
test eax, eax
je 0x50d241
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xec]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x34]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
cmp dword [ebp + 0x18], 0xb
jne 0x50d23f
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x36]
cmp eax, 5
jne 0x50d23f
mov dword [ebp - 0x88], 1
jmp 0x50d246
jmp 0x50d1b7
cmp dword [ebp - 0x9c], 0
jne 0x50d259
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x74]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x9c]
mov dword [eax + edx*4], ecx
jmp 0x50d11a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + eax*4], edx
cmp dword [ebp - 0x88], 0
je 0x50d2b5
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00572370
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x50d2cc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050ff80
add esp, 4
cmp dword [ebp - 0x64], 0
jne 0x50d2e4
cmp dword [ebp - 0x48], 0
jne 0x50d2e4
mov dword [ebp - 0xf8], 0
jmp 0x50d2ee
mov dword [ebp - 0xf8], 1
mov edx, dword [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004df130
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
je 0x50d3e1
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xfc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x50d365
cmp dword [ebp - 0x64], 0
jne 0x50d365
cmp dword [ebp - 0x48], 0
je 0x50d387
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x50d39b
cmp dword [ebp - 0x64], 0
jne 0x50d39b
cmp dword [ebp - 0x48], 0
je 0x50d3bf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x100]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], edx
cmp dword [ebp - 0x5c], 0
je 0x50d400
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004de530
add esp, 0xc
cmp dword [ebp - 0x44], 0
jne 0x50d43a
cmp dword [ebp - 0x5c], 0
je 0x50d43a
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fad00
add esp, 0x18
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp - 0x44], 0
jne 0x50d45c
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.005057d0
add esp, 8
test eax, eax
je 0x50d45c
jmp 0x50e4cc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
jne 0x50d498
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052b840
add esp, 0x20
jmp 0x50e4cc
mov eax, dword [ebp + 8]
push eax
call fcn.0051b140
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x20]
and eax, 0
mov ecx, dword [edx + 0x24]
and ecx, 1
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x150]
or edx, dword [ebp - 0x14c]
je 0x50d53c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
jne 0x50d53c
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x50d53c
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x95]
test ecx, ecx
jne 0x50d53c
cmp dword [ebp + 0x24], 0
jne 0x50d53c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x104]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0
push 0x47
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
cmp dword [ebp - 0x44], 0
jne 0x50d5a6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
and ecx, 0x80
jne 0x50d5a6
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xa0]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0xa0]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
push 0x74
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6e0
add esp, 0x14
mov dword [ebp - 0x80], eax
jmp 0x50d73a
cmp dword [ebp - 0x2c], 0
je 0x50d5bb
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx + 0x32]
mov dword [ebp - 0x108], edx
jmp 0x50d5c5
mov dword [ebp - 0x108], 0
mov ax, word [ebp - 0x108]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0x50], edx
movsx eax, word [ebp - 0x18]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10c]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 0x24], 0
jne 0x50d73a
cmp dword [ebp - 0x5c], 0
je 0x50d63e
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x110], eax
jmp 0x50d648
mov dword [ebp - 0x110], 0
movsx ecx, word [ebp - 0x18]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
cmp dword [ebp - 0x2c], 0
je 0x50d699
movsx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x50]
lea eax, [edx + ecx - 1]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6e0
add esp, 0x14
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x74
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x2c], 0
je 0x50d700
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9740
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x50d700
mov edx, dword [ebp - 0xb8]
mov ax, word [ebp - 0x114]
mov word [edx + 8], ax
push 0xfffffffffffffff7
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050fa90
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x50d73a
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052b4c0
add esp, 0x20
cmp dword [ebp - 0x5c], 0
je 0x50d73a
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x44], 0
je 0x50d768
mov eax, dword [ebp + 8]
push eax
call fcn.004fb330
add esp, 4
mov dword [ebp - 0x40], 0
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], edx
jmp 0x50d9fc
cmp dword [ebp + 0x24], 0
je 0x50d7a1
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x40], 1
push 0x10
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004eec00
add esp, 0x10
mov dword [ebp - 0xac], 0
jmp 0x50d8a0
mov dword [ebp - 0xbc], 4
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
jne 0x50d7e2
cmp dword [ebp - 0x64], 0
jne 0x50d7e2
cmp dword [ebp - 0x48], 0
jne 0x50d7e2
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x50d7e2
cmp dword [ebp - 0x88], 0
jne 0x50d7e2
mov eax, dword [ebp - 0xbc]
or eax, 8
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x98]
push ecx
movzx edx, word [ebp - 0xbc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00521df0
add esp, 0x20
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x50d819
jmp 0x50e4cc
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00526300
add esp, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x78]
push edx
call fcn.005265b0
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x40], 1
je 0x50d8a0
mov eax, dword [ebp + 8]
push eax
call fcn.004fb330
add esp, 4
cmp dword [ebp - 0x40], 2
jne 0x50d8a0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0xb4]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
jl 0x50d8a0
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x14]
je 0x50d8a0
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x50d8a0
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x50d935
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x86
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
cmp dword [ebp - 0x40], 0
jne 0x50d91a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x118]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x7f
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
jmp 0x50d930
cmp dword [ebp - 0x80], 0
je 0x50d930
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050fd40
add esp, 8
jmp 0x50d9fc
mov dword [ebp - 8], 0
jmp 0x50d947
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movsx edx, word [ebp - 0x18]
cmp dword [ebp - 8], edx
jge 0x50d97b
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
movsx ecx, word [edx + eax*2]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ebff0
add esp, 0x14
jmp 0x50d93e
cmp dword [ebp - 0x40], 0
je 0x50d9a9
cmp dword [ebp - 0x80], 0
je 0x50d997
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050fd40
add esp, 8
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], edx
jmp 0x50d9fc
movsx eax, word [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004f6ba0
add esp, 8
push eax
mov eax, dword [ebp - 0x4c]
push eax
movsx ecx, word [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0x60
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f780
add esp, 0x1c
movsx ecx, word [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x89
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f830
add esp, 0x18
cmp dword [ebp + 0x24], 0
jne 0x50dd48
cmp dword [ebp - 0x44], 0
jne 0x50da1e
cmp dword [ebp - 0x40], 2
je 0x50da1e
mov eax, dword [ebp - 0x78]
push eax
call fcn.00525160
add esp, 4
cmp dword [ebp - 0x5c], 0
jne 0x50db22
mov dword [ebp - 0xc4], 0
cmp dword [ebp - 0x40], 0
je 0x50da94
mov ecx, 4
imul edx, ecx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x50da66
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0xb4]
sub edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x68]
mov byte [eax + edx], 0
mov ecx, 4
shl ecx, 0
cmp dword [ebp + ecx - 0xb4], 0
jl 0x50da94
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0xb4]
sub eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x68]
mov byte [ecx + eax], 0
cmp dword [ebp - 0x40], 2
jne 0x50dae3
mov edx, 4
shl edx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x50dab8
mov dword [ebp - 0x11c], 1
jmp 0x50dac2
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x11c]
test eax, eax
jle 0x50dae3
push 0x11
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f680
add esp, 8
mov dword [ebp - 0xc4], eax
push 0
push 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x90]
push eax
push 0
push 0x70
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fb900
add esp, 0x20
cmp dword [ebp - 0xc4], 0
je 0x50db22
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0051ad60
add esp, 8
cmp dword [ebp - 0x40], 0
je 0x50dbc2
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0xb4]
cmp ecx, dword [ebp - 0x14]
je 0x50db75
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0xb4]
cmp eax, dword [ebp - 0x14]
je 0x50db75
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f830
add esp, 0x18
cmp dword [ebp - 0x40], 1
je 0x50db8a
mov eax, dword [ebp + 8]
push eax
call fcn.0051b140
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
je 0x50db9b
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x120], ecx
jmp 0x50dba4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
push 0x32
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
jmp 0x50dd48
cmp dword [ebp - 0x2c], 0
jne 0x50dbd2
cmp dword [ebp - 0x44], 0
je 0x50dcea
mov eax, dword [ebp + 8]
push eax
call fcn.0051b140
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x26
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6c0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00510060
add esp, 4
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0x44], 0
je 0x50dcb3
cmp dword [ebp - 0x5c], 0
jne 0x50dcb1
cmp dword [ebp - 0x2c], 0
je 0x50dc7e
mov dword [ebp - 8], 0
jmp 0x50dc35
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movsx eax, word [ebp - 0x18]
cmp dword [ebp - 8], eax
jge 0x50dc5d
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x5d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
jmp 0x50dc2c
movsx edx, word [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x1e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f830
add esp, 0x18
jmp 0x50dcb1
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x86
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6c0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
jmp 0x50dce8
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0x85
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6c0
add esp, 0x10
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f830
add esp, 0x18
jmp 0x50dd48
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x26
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.0051b140
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x86
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6c0
add esp, 0x10
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x50dd9e
cmp dword [ebp - 0x44], 0
jne 0x50dd6f
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ebbe0
add esp, 0xc
jmp 0x50dd8c
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x5d
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6e0
add esp, 0x14
mov ecx, dword [ebp - 0x54]
push ecx
push 0xf
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6a0
add esp, 0xc
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x50ddb6
cmp dword [ebp - 0x48], 0
jne 0x50ddb6
cmp dword [ebp - 0x64], 0
je 0x50def1
cmp dword [ebp - 0x48], 0
je 0x50ddd4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f2bf0
add esp, 8
mov dword [ebp - 0x124], eax
jmp 0x50ddde
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
push 3
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050bea0
add esp, 0x1c
or eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 8], 0
jmp 0x50de28
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 8], edx
jge 0x50decd
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
mov dword [ebp - 0x148], eax
movzx ecx, word [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0050bb40
add esp, 8
cwde
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xa8], 0xffffffff
je 0x50de96
cmp dword [ebp - 8], 0x20
jge 0x50de8b
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0xa8]
jne 0x50de96
mov eax, dword [ebp - 0x148]
and eax, 1
je 0x50deb4
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004ebff0
add esp, 0x14
jmp 0x50dec8
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6c0
add esp, 0x10
jmp 0x50de1f
movzx edx, byte [ebp - 0xe]
test edx, edx
jne 0x50def1
cmp dword [ebp - 0x2c], 0
jne 0x50def1
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x4f
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050bea0
add esp, 0x1c
mov dword [ebp - 0x144], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x50df3b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 8], eax
jge 0x50e091
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x20]
cmp dword [ebp - 8], edx
jne 0x50df70
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6c0
add esp, 0x10
jmp 0x50e08c
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x60
je 0x50dfaa
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax + 0xe]
and eax, 0x20
je 0x50dfa5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x50e08c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jl 0x50e02d
cmp dword [ebp - 0x44], 0
je 0x50e00f
cmp dword [ebp - 0x5c], 0
je 0x50dfd7
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x12c], eax
jmp 0x50dfe1
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x140]
add ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0x5d
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6e0
add esp, 0x14
jmp 0x50e02b
mov ecx, dword [ebp - 0x28]
push ecx
imul edx, dword [ebp - 0x24], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ebbe0
add esp, 0xc
jmp 0x50e08c
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x50e050
cmp dword [ebp - 8], 0x1f
jg 0x50e050
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0x144]
je 0x50e078
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ebff0
add esp, 0x14
mov dword [ebp - 0xac], 0
jmp 0x50e08c
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0x4a
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6c0
add esp, 0x10
jmp 0x50df29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x50e0b3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e5d30
add esp, 0xc
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x50e213
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050b8f0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
push 0x81
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e4c00
add esp, 0x24
cmp dword [ebp - 0x5c], 0
jne 0x50e213
cmp dword [ebp - 0x2c], 0
je 0x50e137
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x1e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f830
add esp, 0x18
jmp 0x50e151
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050f6e0
add esp, 0x14
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x50e175
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
cmp dword [ebp - 8], eax
jge 0x50e1f1
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx + 0xe]
and ecx, 0x60
je 0x50e1b8
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx + 0xe]
and edx, 0x20
je 0x50e1b6
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
jmp 0x50e1ec
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx*4], 0
jge 0x50e1ec
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 8], ecx
je 0x50e1ec
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004ebff0
add esp, 0x14
jmp 0x50e163
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x50e213
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e5d30
add esp, 0xc
cmp dword [ebp - 0x5c], 0
jne 0x50e3d5
push 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x38]
push edx
movzx eax, byte [ebp + 0x18]
push eax
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f32b0
add esp, 0x34
cmp dword [ebp - 0x88], 0
jne 0x50e270
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x50e2b3
cmp dword [ebp - 0x2c], 0
je 0x50e299
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1e
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f830
add esp, 0x18
jmp 0x50e2b3
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x21
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6e0
add esp, 0x14
cmp dword [ebp - 0x48], 0
je 0x50e2d8
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f1fd0
add esp, 0x18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f4e10
add esp, 0x18
cmp dword [ebp - 0xac], 0
je 0x50e317
mov edx, dword [ebp - 0x14]
push edx
push 0x8e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6a0
add esp, 0xc
cmp dword [ebp - 0x48], 1
jg 0x50e325
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x50e33c
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x81
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050f6c0
add esp, 0x10
cmp dword [ebp - 0x48], 0
je 0x50e361
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f1fd0
add esp, 0x18
cmp dword [ebp - 0x40], 2
jne 0x50e373
mov dword [ebp - 0x130], 2
jmp 0x50e37d
mov dword [ebp - 0x130], 0
push 0
push 0
mov eax, dword [ebp - 0x130]
or eax, 4
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e5b30
add esp, 0x24
cmp dword [ebp - 0x48], 0
je 0x50e3d5
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f1f10
add esp, 0x18
cmp dword [ebp - 0x8c], 0
je 0x50e3f5
push 1
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x55
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
push 2
mov ecx, dword [ebp + 0x10]
push ecx
push 0x81
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e4c00
add esp, 0x24
cmp dword [ebp - 0x40], 1
jne 0x50e428
jmp 0x50e475
cmp dword [ebp - 0x40], 2
jne 0x50e44c
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051dc60
add esp, 8
mov eax, dword [ebp - 0x78]
push eax
call fcn.00525160
add esp, 4
jmp 0x50e475
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051dc60
add esp, 8
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 5
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050f6c0
add esp, 0x10
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0051dc60
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x50e4ab
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x50e4ab
cmp dword [ebp + 0x24], 0
jne 0x50e4ab
mov edx, dword [ebp + 8]
push edx
call fcn.004dea10
add esp, 4
cmp dword [ebp - 0x8c], 0
je 0x50e4cc
push str.rows_updated
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e4540
add esp, 0xc
lea edx, [ebp - 0x158]
push edx
call fcn.004de500
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004e8000
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0050a330
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004efe10
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004ee850
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret