Function at 0x509a70
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.005768e0
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 0x509b53
jmp 0x50b57c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005079e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x509b71
jmp 0x50b57c
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.00504200
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.005094e0
add esp, 0x14
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2b]
cmp ecx, 2
jne 0x509bc7
mov dword [ebp - 0x134], 1
jmp 0x509bd1
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 0x509bef
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xd4], edx
jmp 0x509bf9
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.0051c220
add esp, 8
test eax, eax
je 0x509c1b
jmp 0x50b57c
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f6220
add esp, 0xc
test eax, eax
je 0x509c3b
jmp 0x50b57c
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 0x509c82
mov dword [ebp - 0xd8], 0
jmp 0x509c94
mov eax, dword [ebp - 4]
push eax
call fcn.00501300
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 0x509cc1
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 0x509ce9
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x3c]
jne 0x509cd8
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 0x509caf
cmp dword [ebp + 0x24], 0
je 0x509d10
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.004e5220
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x509d51
jmp 0x50b57c
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.005768e0
add esp, 0xc
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov byte [edx + 1], 0
mov dword [ebp - 8], 0
jmp 0x509d9f
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 0x509dba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x509d96
push 0x20
push 0
lea edx, [ebp - 0x178]
push edx
call fcn.005768e0
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.004f3500
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x509e0c
jmp 0x50b57c
mov byte [ebp - 0x19], 0
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0xe], cl
mov dword [ebp - 8], 0
jmp 0x509e28
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 0x50a07f
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx + 0xc]
push ecx
call fcn.00508800
add esp, 4
mov byte [ebp - 0x6d], al
cmp dword [ebp - 0x44], 0
jne 0x509e77
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.00502880
add esp, 8
test eax, eax
je 0x509e77
jmp 0x50b57c
mov dword [ebp - 0x24], 0
jmp 0x509e89
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 0x509f7f
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 0x509f7a
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.00508790
add esp, 8
test eax, eax
jne 0x509f7a
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 0x24], ecx
jne 0x509f0e
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 0x509f6c
cmp dword [ebp - 0x2c], 0
je 0x509f30
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 0x509f30
mov byte [ebp - 0x19], 1
jmp 0x509f6c
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 0x509f6c
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.004e7db0
add esp, 0xc
jmp 0x50b57c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
jmp 0x509f7f
jmp 0x509e80
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x22]
cmp dword [ebp - 0x24], edx
jl 0x509ff9
cmp dword [ebp - 0x2c], 0
jne 0x509fd0
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
call fcn.004f6290
add esp, 4
test eax, eax
je 0x509fd0
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 0x509ff9
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.004e7db0
add esp, 0xc
mov edx, dword [ebp + 8]
mov byte [edx + 0x11], 1
jmp 0x50b57c
cmp dword [ebp - 0x24], 0
jge 0x50a00b
mov dword [ebp - 0xdc], str.ROWID
jmp 0x50a020
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.004db4f0
add esp, 0x14
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 1
jne 0x50a064
jmp 0x50b57c
cmp dword [ebp - 0xe0], 2
jne 0x50a07a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x509e1f
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 0x50a141
mov dword [ebp - 0xe4], 0
mov dword [ebp - 8], 0
jmp 0x50a0b7
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 0x50a134
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jl 0x50a0d1
jmp 0x50a0ae
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 0x50a0e9
jmp 0x50a0ae
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.004e2500
add esp, 8
push eax
call fcn.004ed5b0
add esp, 0xc
test eax, eax
je 0x50a12f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov dword [eax + edx*4], 0x1869f
mov dword [ebp - 0xe4], 1
jmp 0x50a0ae
cmp dword [ebp - 0xe4], 0
jne 0x50a09b
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x2b]
cmp edx, 1
jne 0x50a162
or eax, 0xffffffff
mov dword [ebp - 0x13c], 0xffffffff
mov dword [ebp - 0x138], eax
jmp 0x50a16d
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.004efe30
add esp, 0x10
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x18], 5
jne 0x50a1b8
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 0x50a1dc
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 0x50a31d
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x50a215
cmp dword [ebp - 0x48], 1
jg 0x50a215
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
je 0x50a215
movzx ecx, byte [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004c1110
add esp, 0xc
test eax, eax
je 0x50a254
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 0x50a2f6
mov dword [ebp - 0x9c], 0
mov dword [ebp - 8], 0
jmp 0x50a270
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 0x50a2f6
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.004c0e10
add esp, 0x10
test eax, eax
je 0x50a2f1
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 0x50a2ef
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x36]
cmp eax, 5
jne 0x50a2ef
mov dword [ebp - 0x88], 1
jmp 0x50a2f6
jmp 0x50a267
cmp dword [ebp - 0x9c], 0
jne 0x50a309
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 0x50a1ca
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 0x50a365
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005768e0
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x50a37c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050d030
add esp, 4
cmp dword [ebp - 0x64], 0
jne 0x50a394
cmp dword [ebp - 0x48], 0
jne 0x50a394
mov dword [ebp - 0xf8], 0
jmp 0x50a39e
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.004dc1e0
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
je 0x50a491
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 0x50a415
cmp dword [ebp - 0x64], 0
jne 0x50a415
cmp dword [ebp - 0x48], 0
je 0x50a437
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 0x50a44b
cmp dword [ebp - 0x64], 0
jne 0x50a44b
cmp dword [ebp - 0x48], 0
je 0x50a46f
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 0x50a4b0
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.004db5e0
add esp, 0xc
cmp dword [ebp - 0x44], 0
jne 0x50a4ea
cmp dword [ebp - 0x5c], 0
je 0x50a4ea
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.004f7db0
add esp, 0x18
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp - 0x44], 0
jne 0x50a50c
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.00502880
add esp, 8
test eax, eax
je 0x50a50c
jmp 0x50b57c
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x2b]
cmp eax, 1
jne 0x50a548
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.005288f0
add esp, 0x20
jmp 0x50b57c
mov eax, dword [ebp + 8]
push eax
call fcn.005181f0
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 0x50a5ec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
jne 0x50a5ec
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x50a5ec
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x95]
test ecx, ecx
jne 0x50a5ec
cmp dword [ebp + 0x24], 0
jne 0x50a5ec
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.0050c770
add esp, 0x10
cmp dword [ebp - 0x44], 0
jne 0x50a656
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
and ecx, 0x80
jne 0x50a656
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.0050c790
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.0050c790
add esp, 0x14
mov dword [ebp - 0x80], eax
jmp 0x50a7ea
cmp dword [ebp - 0x2c], 0
je 0x50a66b
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx + 0x32]
mov dword [ebp - 0x108], edx
jmp 0x50a675
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 0x50a7ea
cmp dword [ebp - 0x5c], 0
je 0x50a6ee
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x110], eax
jmp 0x50a6f8
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 0x50a749
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.0050c790
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.0050c770
add esp, 0x10
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x2c], 0
je 0x50a7b0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f67f0
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x50a7b0
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.0050cb40
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x50a7ea
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.00528570
add esp, 0x20
cmp dword [ebp - 0x5c], 0
je 0x50a7ea
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x44], 0
je 0x50a818
mov eax, dword [ebp + 8]
push eax
call fcn.004f83e0
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 0x50aaac
cmp dword [ebp + 0x24], 0
je 0x50a851
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.004ebcb0
add esp, 0x10
mov dword [ebp - 0xac], 0
jmp 0x50a950
mov dword [ebp - 0xbc], 4
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
jne 0x50a892
cmp dword [ebp - 0x64], 0
jne 0x50a892
cmp dword [ebp - 0x48], 0
jne 0x50a892
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x50a892
cmp dword [ebp - 0x88], 0
jne 0x50a892
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.0051eea0
add esp, 0x20
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x50a8c9
jmp 0x50b57c
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.005233b0
add esp, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x78]
push edx
call fcn.00523660
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x40], 1
je 0x50a950
mov eax, dword [ebp + 8]
push eax
call fcn.004f83e0
add esp, 4
cmp dword [ebp - 0x40], 2
jne 0x50a950
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0xb4]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
jl 0x50a950
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x14]
je 0x50a950
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x50a950
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x80
jne 0x50a9e5
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.0050c770
add esp, 0x10
cmp dword [ebp - 0x40], 0
jne 0x50a9ca
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.0050c790
add esp, 0x14
jmp 0x50a9e0
cmp dword [ebp - 0x80], 0
je 0x50a9e0
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050cdf0
add esp, 8
jmp 0x50aaac
mov dword [ebp - 8], 0
jmp 0x50a9f7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movsx edx, word [ebp - 0x18]
cmp dword [ebp - 8], edx
jge 0x50aa2b
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.004e90a0
add esp, 0x14
jmp 0x50a9ee
cmp dword [ebp - 0x40], 0
je 0x50aa59
cmp dword [ebp - 0x80], 0
je 0x50aa47
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050cdf0
add esp, 8
movsx ecx, word [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], edx
jmp 0x50aaac
movsx eax, word [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004f3c50
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.0050c830
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.0050c8e0
add esp, 0x18
cmp dword [ebp + 0x24], 0
jne 0x50adf8
cmp dword [ebp - 0x44], 0
jne 0x50aace
cmp dword [ebp - 0x40], 2
je 0x50aace
mov eax, dword [ebp - 0x78]
push eax
call fcn.00522210
add esp, 4
cmp dword [ebp - 0x5c], 0
jne 0x50abd2
mov dword [ebp - 0xc4], 0
cmp dword [ebp - 0x40], 0
je 0x50ab44
mov ecx, 4
imul edx, ecx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x50ab16
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 0x50ab44
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 0x50ab93
mov edx, 4
shl edx, 0
cmp dword [ebp + edx - 0xb4], 0
jl 0x50ab68
mov dword [ebp - 0x11c], 1
jmp 0x50ab72
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x11c]
test eax, eax
jle 0x50ab93
push 0x11
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050c730
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.004f89b0
add esp, 0x20
cmp dword [ebp - 0xc4], 0
je 0x50abd2
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00517e10
add esp, 8
cmp dword [ebp - 0x40], 0
je 0x50ac72
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0xb4]
cmp ecx, dword [ebp - 0x14]
je 0x50ac25
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0xb4]
cmp eax, dword [ebp - 0x14]
je 0x50ac25
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.0050c8e0
add esp, 0x18
cmp dword [ebp - 0x40], 1
je 0x50ac3a
mov eax, dword [ebp + 8]
push eax
call fcn.005181f0
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
je 0x50ac4b
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x120], ecx
jmp 0x50ac54
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.0050c770
add esp, 0x10
jmp 0x50adf8
cmp dword [ebp - 0x2c], 0
jne 0x50ac82
cmp dword [ebp - 0x44], 0
je 0x50ad9a
mov eax, dword [ebp + 8]
push eax
call fcn.005181f0
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.0050c770
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050d110
add esp, 4
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0x44], 0
je 0x50ad63
cmp dword [ebp - 0x5c], 0
jne 0x50ad61
cmp dword [ebp - 0x2c], 0
je 0x50ad2e
mov dword [ebp - 8], 0
jmp 0x50ace5
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movsx eax, word [ebp - 0x18]
cmp dword [ebp - 8], eax
jge 0x50ad0d
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.0050c790
add esp, 0x14
jmp 0x50acdc
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.0050c8e0
add esp, 0x18
jmp 0x50ad61
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.0050c770
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.0050c790
add esp, 0x14
jmp 0x50ad98
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.0050c770
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.0050c8e0
add esp, 0x18
jmp 0x50adf8
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.0050c770
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.005181f0
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.0050c770
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.0050c790
add esp, 0x14
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x50ae4e
cmp dword [ebp - 0x44], 0
jne 0x50ae1f
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e8c90
add esp, 0xc
jmp 0x50ae3c
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.0050c790
add esp, 0x14
mov ecx, dword [ebp - 0x54]
push ecx
push 0xf
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050c750
add esp, 0xc
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x50ae66
cmp dword [ebp - 0x48], 0
jne 0x50ae66
cmp dword [ebp - 0x64], 0
je 0x50afa1
cmp dword [ebp - 0x48], 0
je 0x50ae84
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004efca0
add esp, 8
mov dword [ebp - 0x124], eax
jmp 0x50ae8e
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.00508f50
add esp, 0x1c
or eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 8], 0
jmp 0x50aed8
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 0x50af7d
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.00508bf0
add esp, 8
cwde
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xa8], 0xffffffff
je 0x50af46
cmp dword [ebp - 8], 0x20
jge 0x50af3b
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0xa8]
jne 0x50af46
mov eax, dword [ebp - 0x148]
and eax, 1
je 0x50af64
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.004e90a0
add esp, 0x14
jmp 0x50af78
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050c770
add esp, 0x10
jmp 0x50aecf
movzx edx, byte [ebp - 0xe]
test edx, edx
jne 0x50afa1
cmp dword [ebp - 0x2c], 0
jne 0x50afa1
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.0050c770
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.00508f50
add esp, 0x1c
mov dword [ebp - 0x144], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x50afeb
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 0x50b141
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x20]
cmp dword [ebp - 8], edx
jne 0x50b020
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0050c770
add esp, 0x10
jmp 0x50b13c
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 0x50b05a
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 0x50b055
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x50b13c
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 0x50b0dd
cmp dword [ebp - 0x44], 0
je 0x50b0bf
cmp dword [ebp - 0x5c], 0
je 0x50b087
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x22]
mov dword [ebp - 0x12c], eax
jmp 0x50b091
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.0050c790
add esp, 0x14
jmp 0x50b0db
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.004e8c90
add esp, 0xc
jmp 0x50b13c
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x50b100
cmp dword [ebp - 8], 0x1f
jg 0x50b100
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
and edx, dword [ebp - 0x144]
je 0x50b128
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.004e90a0
add esp, 0x14
mov dword [ebp - 0xac], 0
jmp 0x50b13c
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0x4a
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050c770
add esp, 0x10
jmp 0x50afd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x50b163
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e2de0
add esp, 0xc
mov eax, dword [ebp - 0xcc]
and eax, 1
je 0x50b2c3
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005089a0
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.004e1cb0
add esp, 0x24
cmp dword [ebp - 0x5c], 0
jne 0x50b2c3
cmp dword [ebp - 0x2c], 0
je 0x50b1e7
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.0050c8e0
add esp, 0x18
jmp 0x50b201
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.0050c790
add esp, 0x14
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x28], edx
jmp 0x50b225
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 0x50b2a1
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 0x50b268
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 0x50b266
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
jmp 0x50b29c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx*4], 0
jge 0x50b29c
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x20]
cmp dword [ebp - 8], ecx
je 0x50b29c
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.004e90a0
add esp, 0x14
jmp 0x50b213
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
and edx, 0x60
je 0x50b2c3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e2de0
add esp, 0xc
cmp dword [ebp - 0x5c], 0
jne 0x50b485
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.004f0360
add esp, 0x34
cmp dword [ebp - 0x88], 0
jne 0x50b320
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x50b363
cmp dword [ebp - 0x2c], 0
je 0x50b349
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.0050c8e0
add esp, 0x18
jmp 0x50b363
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.0050c790
add esp, 0x14
cmp dword [ebp - 0x48], 0
je 0x50b388
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.004ef080
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.004f1ec0
add esp, 0x18
cmp dword [ebp - 0xac], 0
je 0x50b3c7
mov edx, dword [ebp - 0x14]
push edx
push 0x8e
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050c750
add esp, 0xc
cmp dword [ebp - 0x48], 1
jg 0x50b3d5
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x50b3ec
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x81
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050c770
add esp, 0x10
cmp dword [ebp - 0x48], 0
je 0x50b411
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.004ef080
add esp, 0x18
cmp dword [ebp - 0x40], 2
jne 0x50b423
mov dword [ebp - 0x130], 2
jmp 0x50b42d
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.004e2be0
add esp, 0x24
cmp dword [ebp - 0x48], 0
je 0x50b485
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.004eefc0
add esp, 0x18
cmp dword [ebp - 0x8c], 0
je 0x50b4a5
push 1
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x55
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050c770
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.004e1cb0
add esp, 0x24
cmp dword [ebp - 0x40], 1
jne 0x50b4d8
jmp 0x50b525
cmp dword [ebp - 0x40], 2
jne 0x50b4fc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051ad10
add esp, 8
mov eax, dword [ebp - 0x78]
push eax
call fcn.00522210
add esp, 4
jmp 0x50b525
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051ad10
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.0050c770
add esp, 0x10
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0051ad10
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x50b55b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
jne 0x50b55b
cmp dword [ebp + 0x24], 0
jne 0x50b55b
mov edx, dword [ebp + 8]
push edx
call fcn.004dbac0
add esp, 4
cmp dword [ebp - 0x8c], 0
je 0x50b57c
push str.rows_updated
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e15f0
add esp, 0xc
lea edx, [ebp - 0x158]
push edx
call fcn.004db5b0
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004e50b0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.005073e0
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004ecec0
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004eb900
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret